Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

llgrid

Plot long-lat grid over projected data


Description

Plot long-lat grid over projected data

Usage

llgridlines(obj, easts, norths, ndiscr = 20, lty = 2, offset=0.5, side="WS",
llcrs = "+proj=longlat +datum=WGS84", plotLines = TRUE, plotLabels =
TRUE, ...)

Arguments

obj

object, deriving from Spatial-class having projection specified

easts

numeric; see gridlines

norths

numeric; see gridlines

ndiscr

numeric; see gridlines

offset

numeric; see gridlines

side

character, default “WS”; see gridlines; available from sp 0.9-84

lty

line type to be used for grid lines

llcrs

proj4string of longitude - latitude

plotLines

logical; plot lines?

plotLabels

logical; plot labels?

...

graphics arguments passed to plot function for lines and text function for labels

Value

none; side effect is that grid lines and lables are plotted

See Also

Examples

set_thin_PROJ6_warnings(TRUE)
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)

rgdal

Bindings for the 'Geospatial' Data Abstraction Library

v1.5-23
GPL (>= 2)
Authors
Roger Bivand [cre, aut] (<https://orcid.org/0000-0003-2392-6140>), Tim Keitt [aut], Barry Rowlingson [aut, ctb], Edzer Pebesma [ctb], Michael Sumner [ctb], Robert Hijmans [ctb], Daniel Baston [ctb], Even Rouault [cph, ctb], Frank Warmerdam [cph, ctb], Jeroen Ooms [ctb], Colin Rundel [ctb]
Initial release
2021-02-03

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.