ne_coastline: Get natural earth world coastline

Description Usage Arguments Value Examples

Description

returns world coastline at specified scale

Usage

1
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

1
2
3
4
5
6
7
if (requireNamespace("rnaturalearthdata")) {
   sldf_coast <- ne_coastline()

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

rnaturalearth documentation built on May 1, 2019, 10:26 p.m.