Re: [R-sig-Geo] Use a PNG image as background for lattice plotting with rasterVis

2013-12-09 Thread Oscar Perpiñan
Sure. Using levelplot(..., contour=TRUE, region=FALSE, ...) or contourplot(...) Best, Oscar. Oscar Perpiñán Lamigueiro Dpto. Ingeniería Eléctrica (ETSIDI-UPM) Grupo de Sistemas Fotovoltaicos (IES-UPM) URL: http://oscarperpinan.github.io Twitter: @oscarperpinan LinkedIn: http://es.linkedin.com/in

Re: [R-sig-Geo] Use a PNG image as background for lattice plotting with rasterVis

2013-12-09 Thread Agustin Lobo
Is it possible to get just the contours on top of the gmap? If I use levelplot(...,contour=TRUE,...) I get the contours but the filled levels as well. Thanks Agus On Sat, Oct 19, 2013 at 10:05 AM, Oscar Perpiñan wrote: > Hello, > > Let's suppose that 'gmap' is the image resulting from a GetMap.bb

Re: [R-sig-Geo] Use a PNG image as background for lattice plotting with rasterVis

2013-10-21 Thread Waichler, Scott R
Scott Waichler > -Original Message- > From: Oscar Perpiñan [mailto:oscar.perpi...@gmail.com] > Sent: Saturday, October 19, 2013 1:06 AM > To: Waichler, Scott R > Cc: r-sig-geo@r-project.org > Subject: Re: [R-sig-Geo] Use a PNG image as background for lattice > plotting

Re: [R-sig-Geo] Use a PNG image as background for lattice plotting with rasterVis

2013-10-19 Thread Oscar Perpiñan
Hello, Let's suppose that 'gmap' is the image resulting from a GetMap.bbox() call and 'r' is your Raster*. A suitable solution is: library(rasterVis) levelplot(r) + layer_(grid.raster(gmap, x=lonCenter, y=latCenter,

Re: [R-sig-Geo] Use a PNG image as background for lattice plotting with rasterVis

2013-10-18 Thread Ista Zahn
Hi Scott, You may be interested in the ggmap package; see http://journal.r-project.org/archive/2013-1/kahle-wickham.pdf Best, Ista On Fri, Oct 18, 2013 at 5:56 PM, Waichler, Scott R wrote: > Hi, > > I've learned the basics of using RgoogleMaps and rasterVis, and now I want to > combine their c

Re: [R-sig-Geo] Use a PNG image as background for lattice plotting with rasterVis

2013-10-18 Thread Robert J. Hijmans
Scott, Here is an Incomplete answer but perhaps useful anyway. You can do: library(dismo) g <- gmap("Pacific Northwest National Laboratory, Richland, WA, USA") plot(g) # and now you can add points, polygons, lines. # you can also do library(rasterVis) levelplot(g) This "works" but not as desire

[R-sig-Geo] Use a PNG image as background for lattice plotting with rasterVis

2013-10-18 Thread Waichler, Scott R
Hi, I've learned the basics of using RgoogleMaps and rasterVis, and now I want to combine their capabilities to use levelplot() with a georeferenced PNG image as a background in the lattice panel. And, I want to plot to the normal R graphics devices, not the web as package plotGoogleMaps does.