Hi,

For the sake of completeness: just a few days ago I received a comment
to a post about spplot and ggmap
(http://procomun.wordpress.com/2013/04/24/stamen-maps-with-spplot/).
There I was using a SpatialPointsDataFrame object. Because of that
comment I posted another example with SpatialPolygonsDataFrame:
https://gist.github.com/oscarperpinan/7482848

Best,

Oscar.
-----------------------------------------------------------------
Oscar Perpiñán Lamigueiro
Grupo de Sistemas Fotovoltaicos (IES-UPM)
Dpto. Ingeniería Eléctrica (ETSIDI-UPM)
URL: http://oscarperpinan.github.io
Twitter: @oscarperpinan


2013/11/20 Waichler, Scott R <scott.waich...@pnnl.gov>:
> I was told, among other things, to look for previous messages by Oscar that 
> would explain how to do this.  Here is Oscar's solution that I found to work 
> for the case where you want to plot two rasters that have different extents.  
> In my case, gmap is a satellite image obtained with RgoogleMaps, and z are 
> the results I want to plot over the background image.  I made the alpha 
> values of z less than 1 so that the background image would show through.
>
> library(rasterVis)
> levelplot(z~x*y) +
> layer_(grid.raster(gmap, y=latCenter, width=width, height=height, 
> default.units='native'))
>
> Scott Waichler
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo

_______________________________________________
R-sig-Geo mailing list
R-sig-Geo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo

Reply via email to