Plot a 'report' summarising indicators for both short- and long-term model quality objectives
plot_mqi_report.Rd
This function produces a series of one-dimensional scatter plots reporting all of the spatial and temporal indicators, as well as the MQIs, contained within short- and long-term statistics objects. In non-interactive plots, a dotted vertical line indicates the 90th percentile (for MQIs & TIs) or maximum (for SIs) values for each statistic.
Usage
plot_mqi_report(
stats_shortterm = NULL,
stats_longterm = NULL,
color_fixed = "#4269D0",
color_indicative = "#EFB118",
color_outline = "black",
color_target = "green4",
censor = 2,
interactive = FALSE
)
Arguments
- stats_shortterm, stats_longterm
The output of
summarise_mqo_stats()
. All relevant information (e.g.,term
,params_fixed
, etc.) will be passed to this function.stats_shortterm
should contain short-term (temporal) statistics,stats_longterm
should contain long-term (spatial) statistics. Either of these can beNULL
, but at least one should be provided.- color_fixed, color_indicative, color_outline
The colours to use for fixed data, indicative data, and any another annotations. Can be expressed as hex codes, or any colours listed in
colors()
.- color_target
The colour to use for highlighting the target range for each statistic (always
0
to1
). This colour will recieve an alpha value of0.15
to ensure the scatter markers are still visible against it.- censor
The maximum value to show in the 'report'. Any values above this will be reduced to this value. The default,
2
, is twice the size of the objective of1
and is appropriate for most use cases.- interactive
If
FALSE
, the default, a staticggplot2
graphic will be returned which can be saved as a PNG, SVG, or other similar format. IfTRUE
, a dynamic HTML widget will be returned created byplotly
.
Value
a patchwork assemblage
See also
Other plotting functions:
plot_comparison_bars()
,
plot_mqi_bars()
,
plot_mqi_scatter()
,
plot_timeseries()
Examples
long <- summarise_mqo_stats(demo_longterm, pollutant = "PM10")
#> ! term assumed to be 'long'.
#> ℹ If this is incorrect, please specify the data's term using the term argument.
short <- summarise_mqo_stats(demo_shortterm, pollutant = "PM10")
#> ! term assumed to be 'short'.
#> ℹ If this is incorrect, please specify the data's term using the term argument.
plot_mqi_report(short, long)