powered by
returns world coastline at specified scale
ne_coastline(scale = 110, returnclass = c("sp", "sf"))
SpatialLinesDataFrame or sf
SpatialLinesDataFrame
sf
scale of map to return, one of 110, 50, 10 or 'small', 'medium', 'large'
110
50
10
'small'
'medium'
'large'
'sp' default or 'sf' for Simple Features
if (requireNamespace("rnaturalearthdata")) { sldf_coast <- ne_coastline() if (require(sp)) { plot(sldf_coast) } }
Run the code above in your browser using DataLab