Displaying 1 result from an estimated 1 matches for "drawoverviewmap".
2007 Nov 23
1
ggplo2: fixed extent greater than data?
...is lacking some bits...
So I have to pose that question directly:
I'd like to produce a series of maps with different data on, but exactly the
same extent in each plot. Is there a way of switching the automatic extent
(to the data of the last layer added) OFF? I'm trying something like:
drawOverviewMap<-function(){
p2<-ggplot(xlimits=c(2,20),ylimits=c(43,50))+coord_map(project="azequalarea")
p2<-p2+geom_path(data=wa,mapping=aes(x=x,y=y))
p2<-p2+geom_point(data=spts,mapping=aes(x=Lon,y=Lat))
return(p2)
}
If I plot this in cartesian coordinates, it will zoom to the extent...