GetMap | R Documentation |
GetMap
directly looks up the path of a map based on a shortcut name or number, loads the map from this location and returns the object.
GetMap(name_x, basedir = getOption("bfsMaps.base",
default = file.path(find.package("bfsMaps"), "extdata")),
crs = 2056)
name_x |
the name of a map, currently supported are |
basedir |
the root directory for the maps to reside. bfsMaps by default looks for the mapfiles in its install location in the extdata directory. The |
crs |
Coordinate reference system (default 2056) for the map, if not set to |
Loading the cards no longer causes performance problems and can thus be performed directly.
the map object
Andri Signorell <andri@signorell.net>
try( {
# use map containing Swiss metropolitan regions
mymap <- GetMap("metr.map")$geometry
PlotCH()
plot(mymap, col=Pal("Helsana"), add=TRUE, border=NA)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.