View source: R/loadSpatialData.R
loadSpatialData | R Documentation |
Load datasets found in the directory previously set with
setSpatialDataDir()
.
Only files matching pattern
will be loaded.
By default, all .rda
files are matched.
Core datastes available for the package include:
TMWorldBorders
– high resolution country polygons (higher
resolution than SimpleCountries
)
NaturalEarthAdm1
– state/province polygons throughout the world
USCensusCounties
– county polygons in the United States
WorldTimezones
– high resolution timezone polygons (higher
resolution than SimpleTimezones
)
These can be installed with installSpatialData()
.
loadSpatialData(pattern = "*\\.rda")
pattern |
Regular expression used to match file names. |
Invisibly returns a vector of spatial dataset names loaded into the global environment.
setSpatialDataDir
installSpatialData
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.