Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

ne_coastline

Get natural earth world coastline


Description

returns world coastline at specified scale

Usage

ne_coastline(scale = 110, returnclass = c("sp", "sf"))

Arguments

scale

scale of map to return, one of 110, 50, 10 or 'small', 'medium', 'large'

returnclass

'sp' default or 'sf' for Simple Features

Value

SpatialLinesDataFrame or sf

Examples

if (requireNamespace("rnaturalearthdata")) {
   sldf_coast <- ne_coastline()

   if (require(sp)) {
     plot(sldf_coast)
   }
}

rnaturalearth

World Map Data from Natural Earth

v0.1.0
MIT + file LICENSE
Authors
Andy South [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.