Plot a bar chart comparing observed (measured) and modelled concentrations
plot_comparison_bars.Rd
This function produces a plot comparing modelled and measured concentrations. For long-term data, the provided annual averaged measured data is visualised alongside the performance acceptability range of the observations. For short-term data, the RMSE and RMSU*0 are visualised.
Usage
plot_comparison_bars(
stats,
color_obs = "grey85",
color_mod = "black",
color_outline = "black",
interactive = FALSE
)
Arguments
- stats
The output of
summarise_mqo_stats()
. All relevant information (e.g.,term
,params_fixed
, etc.) will be passed to this function.- color_obs, color_mod, color_outline
The colours to use to fill the 'observation' bars, 'modelled' bars, and for the outlines/error bars. Can be expressed as hex codes, or any colours listed in
colors()
.- 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
.
See also
Other plotting functions:
plot_mqi_bars()
,
plot_mqi_report()
,
plot_mqi_scatter()
,
plot_timeseries()
Examples
plot_comparison_bars(
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.
plot_comparison_bars(
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.