[R-sig-Geo] spplot handling of overlapping points?

Edzer Pebesma edzer.pebesma at uni-muenster.de
Mon Mar 5 16:58:36 CET 2012


On 03/05/2012 04:36 PM, MacQueen, Don wrote:
> Edzer,
> 
> I think you've done the right thing -- and thank you for the quick
> response.
> 
> Ironically, in the application that brought this up plotting higher values
> on top was convenient, because higher values are of more interest.
> However, I can still have higher values on top simply by sorting before
> plotting. The user now has more control, and this is good.

Right, the old behaviour is obtained by reordering the data, as in:

library(sp)
xyz = data.frame(expand.grid(x=1:10,y=1:10), z = rnorm(100))
coordinates(xyz)=~x+y
spplot(xyz[order(xyz$z),], cex=10)
-- 
Edzer Pebesma
Institute for Geoinformatics (ifgi), University of Münster
Weseler Straße 253, 48151 Münster, Germany. Phone: +49 251
8333081, Fax: +49 251 8339763  http://ifgi.uni-muenster.de
http://www.52north.org/geostatistics      e.pebesma at wwu.de



More information about the R-sig-Geo mailing list