[R-sig-Geo] Variable point size with spplot

piero campa piero.campa at gmail.com
Mon Mar 26 13:10:11 CEST 2012


Dear list,
I used to plot points of variable size with "spplot" this way:

library(RColorBrewer)
data(meuse)
coordinates(meuse) <- ~x+y
spplot(meuse, zcol="om",
        col.regions=colorRampPalette(brewer.pal(7, "PuBu")[-(1:1)])(20), 
        scales=list(draw=TRUE), 
        cex=.4*(1:5)
)

but now, after R upgrade, this is not working properly anymore.
As you can see from the attached image, colors are not well linked to points
size.

Any hint?

-Piero

--
View this message in context: http://r-sig-geo.2731867.n2.nabble.com/Variable-point-size-with-spplot-tp7405527p7405527.html
Sent from the R-sig-geo mailing list archive at Nabble.com.



More information about the R-sig-Geo mailing list