0

我正在绘制一个地区的降雨图。我的问题是,当温度高于既定刻度时,会绘制一些白点。

功能:

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,
at          = c(0,10,20,30,50,70,90,110,130,150,170,190,210,230),
colorkey    = list(
  labels=list(
    at     = 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
)

spplot 函数中是否存在某种动态范围?

地图:

在此处输入图像描述

4

1 回答 1

0

是的,sp::spplot将数据范围作为色标的默认范围。

在您的示例中(未显示labelat所指的内容),您可以将最大值 (230) 替换为数据最大值,max(datavalues[[1]]),或者如果您希望将其保持为最小值 230,请将其替换为max(c(230, datavalues[[1]]))。还要在 中设置正确的值labels,否则没有意义。

于 2015-02-23T20:53:09.007 回答