An internal function to make basemap
code more readable
Arguments
- command
basemap layer to be added
- alternative
logical to return alternative formmatting in certain cases. Used to reduce
if
-else
statements inbasemap
.
Value
A character string containing a ggplot2 plotting command. Use eval(parse(text=...))
to plot the string.
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
.