map_cmd: Return map elements for basemap

View source: R/map_cmd.R

map_cmdR Documentation

Return map elements for basemap

Description

An internal function to make basemap code more readable

Usage

map_cmd(command, alternative = FALSE)

Arguments

command

basemap layer to be added

alternative

logical to return alternative formmatting in certain cases. Used to reduce if-else statements in basemap.

Details

This is an internal function, which is automatically run by the basemap function. Common users do not need to worry about these details. Basemap elements can added together using this function, parse and eval.

Author(s)

Mikko Vihtakari

See Also

basemap

Examples

## An example for utm map without glaciers or bathymetry
## Not run: eval(parse(text=paste(map_cmd("base"), map_cmd("land_utm"),
map_cmd("grid_utm"), map_cmd("defs_utm"), sep = "+")))
## End(Not run)

MikkoVihtakari/PlotSvalbard documentation built on July 12, 2022, 10:20 a.m.