gridlinesWrap {mapmisc} | R Documentation |
long-lat grid lines are added to a map in the coordinate system specified, allowing for map projections wrapped differently from the 180 meridian.
gridlinesWrap(crs, easts=seq(-180,180,by=60), norths=seq(-90,90,by=30), ndiscr=40, plotLines=TRUE, plotLabels = TRUE, ...)
crs |
A |
easts |
vector of longitudes |
norths |
vector of latitudes |
ndiscr |
number of intermediate points per line |
plotLines |
add lines to existing plot |
plotLabels |
add labels to existing plot |
... |
Additional arguments passed to |
Patrick Brown
## Not run: Npoints = 20 myPoints = SpatialPointsDataFrame( cbind( runif(Npoints, -15000000, 15000000), runif(Npoints, -8000000, 8000000)), data=data.frame(y1=c(NA, rnorm(Npoints-1)), y2=c(sample(0:5, Npoints-1,replace=TRUE), NA)), proj4string=moll(c(-100,0)) ) plot(myPoints) gridlinesWrap(myPoints, lty=3, col='red') ## End(Not run)