Skip to content
Prev 11864 / 29559 Next

spplot: overlay colored points on grid

Tim, maybe this works:

pts$col = findInterval(pts$z, colbreaks)
spplot(df, col.regions=cols, at=colbreaks,
       sp.layout=list(list("sp.points", pts, pch=21, col=1,cex=1.8),
       list("sp.points", pts, col = cols[pts$col], pch=16,cex=1.6)),
       main="maybe right")

plotting pts twice is a bit of a hack; you need to get the cex arguments
right by tweaking them somewhat.

Hth,
On 05/30/2011 11:00 PM, Timothy W. Hilton wrote: