ne_coastline: Get natural earth world coastline

View source: R/ne_coastline.R

ne_coastlineR Documentation

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 documentation built on Aug. 21, 2023, 5:12 p.m.