search for: usamap

Displaying 1 result from an estimated 1 matches for "usamap".

2010 Nov 01
1
ggplot map bounds
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 When I plot this the problem is that the bounds of the plot is from 31N to 38N and 90W to 75W. The problem is that I only need the bounds of the plot to be from 33N to 37N and 85W to 75W. The way this is now, if I try to subset the states object, I...