Is there a way to zoom in a map on an R spatial polygons object.
i.e. if I have polygons for a whole country but I want to zoom in on a specific city and just plot that area how do I do that ?
At the moment I am just plotting a chloropleth of the whole country like this:
colours<-(brewer.pal(9, "YlGn")) brks<-classIntervals(poly$var1, n=9, style="quantile") brks<-brks$brks plot(ED, col=colours[findInterval(poly$var1, brks,all.inside=TRUE)], axes=F, border=FALSE)
I wanna zoom in and plot a rectangular area around a particular city but can't figure out how.