ne_coastline | R Documentation |
returns world coastline at specified scale
ne_coastline(scale = 110, returnclass = c("sp", "sf"))
scale |
scale of map to return, one of |
returnclass |
'sp' default or 'sf' for Simple Features |
SpatialLinesDataFrame
or sf
if (requireNamespace("rnaturalearthdata")) {
sldf_coast <- ne_coastline()
if (require(sp)) {
plot(sldf_coast)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.