ne_coastline | R Documentation |
returns world coastline at specified scale
ne_coastline(scale = 110, returnclass = c("sf", "sv"))
scale |
The scale of map to return, one of '110', '50', '10' or 'small', 'medium', 'large'. |
returnclass |
A string determining the spatial object to return. Either "sf" for for simple feature (from 'sf', the default) or "sv" for a 'SpatVector' (from 'terra'). |
Note that the filename of the requested object will be returned if 'load = FALSE'.
An object of class 'sf' for simple feature (from 'sf', the default) or 'SpatVector' (from 'terra').
ne_load
, pre-downloaded data are available using
ne_countries
, ne_states
. Other geographic data
are available in the raster package : getData
.
if (requireNamespace("rnaturalearthdata")) {
coast <- ne_coastline()
plot(coast)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.