[R] ggplot map bounds

2010-11-01 Thread Adrienne Wootten
To all, I'm working with code below to produce a map with station data plotted in points, but right now I'm having trouble with the mapping portion of this code states - data.frame(map(state, plot=FALSE,xlim= c(-85,-75),ylim=c(33,37))[c(x,y)]) usamap- ggplot(states)+geom_path(aes(x,y)) usamap

Re: [R] ggplot map bounds

2010-11-01 Thread Ista Zahn
Hi Adrienne, I think usamap + xlim(c(-85, -75)) + ylim(c(33,37)) will do what you want. Best, Ista On Mon, Nov 1, 2010 at 10:52 AM, Adrienne Wootten amwoo...@ncsu.edu wrote: To all, I'm working with code below to produce a map with station data plotted in points, but right now I'm having

Re: [R] ggplot map bounds

2010-11-01 Thread Adrienne Wootten
Oh this is excellent, Thanks! Adrienne On Mon, Nov 1, 2010 at 11:25 AM, Ista Zahn iz...@psych.rochester.eduwrote: Hi Adrienne, I think usamap + xlim(c(-85, -75)) + ylim(c(33,37)) will do what you want. Best, Ista On Mon, Nov 1, 2010 at 10:52 AM, Adrienne Wootten amwoo...@ncsu.edu