Friday, 15 June 2012

plot - R - values ​​above the scale -



plot - R - values ​​above the scale -

i'm plotting rain map region. problem when temperature above established scale, white points plotted.

function:

spplot( datavalue, main = list(label=main,cex=0.9), sp.layout = layout.list.compl(shapebound,shapesurround,complete=true,0.45), xlim = xlim, ylim = ylim, col.regions = color, @ = c(0,10,20,30,50,70,90,110,130,150,170,190,210,230), colorkey = list( labels=list( @ = labelat, labels = c("0","10","20","30","50","70","90","110","130","150","170","190","210","230") ) ), scales = list(draw=true), pretty = true, cex = 10 )

is there kind of dynamic range in spplot function?

map:

yes, sp::spplot takes info range default range color scale.

in illustration (which not reveal labelat refers to), replace maximum value (230) info maximum, max(datavalues[[1]]), or if want maintain 230 @ minimum, replace max(c(230, datavalues[[1]])). set right value in labels, otherwise doesn't create sense.

r plot sp

No comments:

Post a Comment