graticule | R Documentation |
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)
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 |
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
.
SpatialLines or SpatialPolygons object
graticule()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.