map_cmd_extra: Return map elements for basemap

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/map_cmd_extra.R

Description

Additional basemap elements to ggOceanMaps::map_cmd

Usage

1
map_cmd_extra(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.

Value

A character string containing a ggplot2 plotting command. Use eval(parse(text=...)) to plot the string.

Author(s)

Mikko Vihtakari

See Also

basemap

Examples

1
2
3
4
## 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/WaterMass documentation built on Jan. 27, 2022, 11:50 p.m.