Learn R Programming

rnaturalearth (version 0.1.0)

ne_coastline: Get natural earth world coastline

Description

returns world coastline at specified scale

Usage

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

Value

SpatialLinesDataFrame or 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

Examples

Run this code

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

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

Run the code above in your browser using DataLab