Re: [R] ggmap (or ggplot2 with mapping question)

2014-12-27 Thread peter dalgaard
> On 27 Dec 2014, at 03:12 , David Winsemius wrote: > > No. As I said before, all I see when I enter myMap at the console prompt is a > set of RGB values displayed, not as a graphic item but rather as a character > matrix with [1:78,1:1280]-entries. ggmap(myMap) looks like a better idea, or

Re: [R] ggmap (or ggplot2 with mapping question)

2014-12-26 Thread David Winsemius
> On Dec 26, 2014, at 4:51 PM, Roy Mendelssohn - NOAA Federal > wrote: > > Thanks. The map specs are stored in myMap, it can be displayed just by > typing at the prompt: > > myMap > No. As I said before, all I see when I enter myMap at the console prompt is a set of RGB values displayed,

Re: [R] ggmap (or ggplot2 with mapping question)

2014-12-26 Thread Roy Mendelssohn - NOAA Federal
Just as a followup, for the archives: geom_rect does work. The aes for geom_rect requires xmax, xmin, ymax, ymin, - which are the limits of the bounding box. So: > ggmap(myMap) + > geom_rect(aes(xmin=-130,xmax=-125,ymin=30,ymax=35),colour="white",fill="red”) should work. geom_polygon will

Re: [R] ggmap (or ggplot2 with mapping question)

2014-12-26 Thread Roy Mendelssohn - NOAA Federal
Thanks. The map specs are stored in myMap, it can be displayed just by typing at the prompt: myMap Thanks for the geom.rect suggestion. I will look at that. -Roy On Dec 26, 2014, at 4:16 PM, David Winsemius wrote: > >> On Dec 26, 2014, at 3:26 PM, Roy Mendelssohn - NOAA Federal >> wrot

Re: [R] ggmap (or ggplot2 with mapping question)

2014-12-26 Thread David Winsemius
> On Dec 26, 2014, at 3:26 PM, Roy Mendelssohn - NOAA Federal > wrote: > > HI All: > > Okay I am feeling particular brain dead today. i have the following map > created so far using ggmap: > >> library(ggmap) >> myLocation <- c(-178, -28, -72, 48) >> myMap <- get_map(location=myLocation, so

[R] ggmap (or ggplot2 with mapping question)

2014-12-26 Thread Roy Mendelssohn - NOAA Federal
HI All: Okay I am feeling particular brain dead today. i have the following map created so far using ggmap: > library(ggmap) > myLocation <- c(-178, -28, -72, 48) > myMap <- get_map(location=myLocation, source="google", maptype="satellite", > crop=FALSE) > I want to color in some lat-lon 5 d