Last chance! 50% off unlimited learning
Sale ends in
Plot long-lat grid over projected data
llgridlines(obj, easts, norths, ndiscr = 20, lty = 2, offset=0.5, side="WS",
llcrs = "+proj=longlat +datum=WGS84", plotLines = TRUE, plotLabels =
TRUE, ...)
object, deriving from Spatial having projection specified
numeric; see gridlines
numeric; see gridlines
numeric; see gridlines
numeric; see gridat
character, default “WS”; see gridat; available from sp 0.9-84
line type to be used for grid lines
proj4string of longitude - latitude
logical; plot lines?
logical; plot labels?
graphics arguments passed to plot function for lines and text function for labels
none; side effect is that grid lines and lables are plotted
# NOT RUN {
data(meuse)
coordinates(meuse) = ~x+y
proj4string(meuse) <- CRS("+init=epsg:28992")
plot(meuse)
llgridlines(meuse, lty=3)
plot(meuse)
llgridlines(meuse, lty=3, side = "EN", offset = 0.2)
# }
Run the code above in your browser using DataLab