[R-sig-Geo] spplot with two rasters

Edzer Pebesma edzer.pebesma at uni-muenster.de
Wed Mar 5 08:32:21 CET 2008


I find it hard to imagine how you want to plot two raster files on top 
of each other. Do you want some form of transparency? If it is just one 
overlaying the other, you could use overlay to find out which cells in 
raster 1 to replace with those in raster 2 before plotting.
--
Edzer

Dylan Beaudette wrote:
> Hi,
>
> Is it possible to plot two raster images using spplot() in a manner similar 
> to:
>
> pts <- list("sp.points", points_file, pch = 4, col = "black", cex=0.5)
> spplot(raster_file, zcol="elev.pred", sp.layout=list(pts))
>
> Note that one of the raster images is an aerial photo, used only for context, 
> while the second one is one with interesting z-values. The second raster is 
> masked and thus does not cover the entire region.
>
> Thanks,
>
> Dylan
>
>
>




More information about the R-sig-Geo mailing list