graticule {graticule} | R Documentation |
Create graticule lines.
Description
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).
Usage
graticule(lons, lats, nverts = NULL, xlim, ylim, proj = NULL, tiles = FALSE)
Arguments
lons |
longitudes for meridional lines |
lats |
latitudes for parallel lines |
nverts |
number of discrete vertices for each segment |
xlim |
maximum range of parallel lines |
ylim |
maximum range of meridional lines |
proj |
optional proj.4 string for output object |
tiles |
if |
Details
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
.
Value
SpatialLines or SpatialPolygons object
Examples
graticule()