[R-sig-Geo] spplot(), SpatialGridDataFrame

Edzer J. Pebesma edzer.pebesma at uni-muenster.de
Mon Nov 19 15:49:29 CET 2007


Ingo Holz wrote:
> Hi,
>
>  I have a SpatialGridDataFrame and want to plot it with spplot().
>
>  Is it possible to plot only the grids that have a special value (eg. 312)?
>   
fullgrid(x) = FALSE
spplot(x[x$value == 312,"value"]

Note that if fullgrid(x) is TRUE, x[rows,cols] would select on 
rows/cols, not on attribute values.
>  If it is not possible to do this with spplot() how would it be done with plot()?
>
>   
I'd use image rather than plot; plot would use symbols instead of 
coloured squares.
--
Edzer
> Thanks, Ingo
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>




More information about the R-sig-Geo mailing list