plot_map3 | R Documentation |
Returns a cowplot object for a global map plot.
plot_map3( obj, maxval = NA, breaks = NA, lonmin = -180, lonmax = 180, latmin = -90, latmax = 90, nbin = 10, legend_title = waiver(), colorscale = viridis::viridis, do_reproj = FALSE, plot_title = waiver(), plot_subtitle = waiver(), combine = TRUE, varnam = NULL, ... )
obj |
An object, either a |
maxval |
A numeric value specifying the maximum value for which the color key is to be extended. Defaults
to |
breaks |
A numeric vector specifying the breaks for the color scale. Defaults to |
lonmin |
Left edge (longitude, in degrees), defaults to -180. |
lonmax |
Right edge (longitude, in degrees), defaults to 180. |
latmin |
Lower edge (latitude, in degrees), defaults to -90. |
latmax |
Upper edge (latitude, in degrees), defaults to 90. |
nbin |
An integer specifying the number of bins used for the color key. |
legend_title |
A character string specifying the legend title (annotation above the color key) |
colorscale |
Either function that returns a set of colors or a vector of color names from which to interpolate.
Defaults to |
do_reproj |
A boolean specifying whether to re-project the map to Robin projection |
plot_title |
A character string specifying the plot title |
plot_subtitle |
A character string specifying the plot subtitle |
combine |
A boolean specifying whether the map and the colorscale should be combined using cowplot.
Defaults to |
varnam |
If |
A ggplot object for a global map plot.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.