ne_downloadreturns loaded data as a spatial object.
ne_load(
scale = 110,
type = "countries",
category = c("cultural", "physical", "raster"),
destdir = tempdir(),
file_name = NULL,
returnclass = c("sp", "sf")
)A Spatial object depending on the data (points, lines,
polygons or raster).
scale of map to return, one of 110, 50, 10
or 'small', 'medium', 'large'
type of natural earth file one of 'countries', 'map_units', 'map_subunits', 'sovereignty', 'states' OR the portion of any natural earth vector url after the scale and before the . e.g. for 'ne_50m_urban_areas.zip' this would be 'urban_areas' OR the raster filename e.g. for 'MSR_50M.zip' this would be 'MSR_50M'
one of natural earth categories : 'cultural', 'physical', 'raster'
folder to load files from, default=tempdir()
OPTIONAL name of file (excluding path) instead of natural earth attributes
'sp' default or 'sf' for Simple Features
ne_download