ne_find_vector_data function

Return a dataframe of available vector layers on Natural Earth

Return a dataframe of available vector layers on Natural Earth

Checks the Natural Earth Github repository for current vector layers and provides the file name required in the type argument of ne_download.

ne_find_vector_data( scale = 110, category = c("cultural", "physical"), getmeta = FALSE )

Arguments

  • scale: The scale of map to return, one of 110, 50, 10 or small, medium, large.
  • category: one of natural earth categories : 'cultural', 'physical'
  • getmeta: whether to get url of the metadata for each layer

Returns

dataframe with two variables: layer and metadata

Details

Note that the filename of the requested object will be returned if load = FALSE.

Examples

## Not run: ne_find_vector_data(scale = 10, category = "physical") ## End(Not run)

See Also

ne_load, pre-downloaded data are available using ne_countries, ne_states. Other geographic data are available in the raster package : getData.