mazama_initialize {MazamaSpatialPlots} | R Documentation |
Initialize with MazamaScience standard directories
Description
Convenience function to initialize spatial data for US state and county maps. Wraps the following setup lines:
MazamaSpatialUtils::setSpatialDataDir(spatialDataDir) MazamaSpatialUtils::loadSpatialData("USCensusCounties_02") MazamaSpatialUtils::loadSpatialData("USCensusStates_02")
Usage
mazama_initialize(spatialDataDir = "~/Data/Spatial")
Arguments
spatialDataDir |
Directory where spatial datasets are found, Default: "~/Data/Spatial" |
Value
No return value.
Examples
library(MazamaSpatialPlots)
# Set up directory for spatial data
spatialDataDir <- tempdir() # typically "~/Data/Spatial"
MazamaSpatialUtils::setSpatialDataDir(spatialDataDir)
exists("USCensusStates_02")
mazama_initialize(spatialDataDir)
exists("USCensusStates_02")
class(USCensusStates_02)
[Package MazamaSpatialPlots version 0.2.0 Index]