View source: R/plotSpatialComparison.R
plotSpatialComparison | R Documentation |
This function is for plotting maps from Comparison objects (or a list of those Comparisons). Three types of comparisons plots are supported: 'difference' - a difference map; "values" - the absolute values plotted in panels and "percentage.difference" - the percentage differences.
plotSpatialComparison(
comparisons,
type = c("difference", "percentage.difference", "values", "nme"),
limits = NULL,
legend.title,
panel.bg.col = "white",
override.cols = NULL,
symmetric.scale = TRUE,
do.phase = FALSE,
...
)
comparisons |
The data to plot, must be a Comparison or a list of Comparisons |
type |
A character specifying what type of plot to make. Can be "difference" (default, for a difference plot), "percentage.difference", "values" (actual values, side-by-side) or "nme" (for the Normalised Mean Error, not yet implemented) |
limits |
A numeric vector with two members (lower and upper limit) to limit the plotted values. |
legend.title |
A character string or expression to override the default legend title. Set to NULL for no legend title. The default legend title is the |
panel.bg.col |
Colour string for the panel background, default to "white" for absolute values plots, and a grey for difference plots. |
override.cols |
A colour palette function to override the defaults. |
symmetric.scale |
If plotting a differences, make the scale symmetric around zero (default is TRUE) |
do.phase |
Logical, only applies to plotting Comparison objects of type "seasonal". If TRUE plot the the seasonal phase, if FALSE (the default), plot the seasonal concentration. |
... |
Parameters passed to plotSpatial |
A wrapper for around plotSpatial to plot the spatial Comparisons as maps. Extra arguments to plotSpatial can also be specified.
Returns a ggplot object
Matthew Forrest matthew.forrest@senckenberg.de
plotSpatial, compareLayers
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.