View source: R/shapefile_list.R
shapefile_list | R Documentation |
basemap
Lists available pre-made shapefiles for plotting in the basemap
function. Gives also instructions how to make custom ones.
shapefile_list(name, get.data = FALSE)
name |
A character argument giving the name of a pre-made shapefile. Will be partially matched. Use "all" to list all available ones. |
get.data |
Logical indicating whether spatial data should be returned instead of names of spatial data objects. |
Custom shapefiles for basemap
should be defined as lists with (at least) following names (everything should be provided as characters):
land Name of the object containing land polygons. Required.
glacier Name of the object containing glacier polygons. Use NULL
if glaciers are not needed.
bathy Name of the object containing land polygons. Use NULL
if bathymetry is not needed.
All linked spatial data objects must be in same projection. High-resolution pre-made data are still under development and may not be available. Pre-made shapefiles contain additional elements that are used in the basemap
function, but not required for custom shapefile datasets.
Returns a data frame of provided pre-made shapefiles, if name = "all"
. Returns a shapefile list containing the information for a particular map otherwise.
Mikko Vihtakari
Other basemap functions:
basemap()
,
qmap()
,
transform_coord()
shapefile_list("all")
shapefile_list("Arctic") # partial matching
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.