Specify the creation of lines along meridians by specifying their placement
at particular lons
(longitudes) and lats
(latitudes) and their extents
with xlim
(extent of parallel line in longitude) and ylim
(extent of meridional line in latitude).
graticule(lons, lats, nverts = NULL, xlim, ylim, proj = NULL, tiles = FALSE)
SpatialLines or SpatialPolygons object
longitudes for meridional lines
latitudes for parallel lines
number of discrete vertices for each segment
maximum range of parallel lines
maximum range of meridional lines
optional proj.4 string for output object
if TRUE
return polygons as output
Provide a valid PROJ.4 string to return the graticule lines in this projection. If this is not specified the graticule
lines are returned in their original longlat / WGS84.
All segments are discretized as _rhumb_lines_ at `getOption("graticule.mindist")` metres, which
defaults to `5e4`.
The arguments xlim
, ylim
and nverts
are ignored if tiles
is TRUE
.