Calculates a set of performance statistics and optionally creates plots of modelled versus observed values.
analyse_modobs2(
df,
mod,
obs,
type = "points",
relative = FALSE,
shortsubtitle = FALSE,
plot_subtitle = TRUE,
plot_linmod = TRUE,
pal = "viridis",
...
)A data frame containing columns with names corresponding to arguments
mod and obs
A character string specifying the variable name (column) of the
modelled (simulated) values in data frame df.
A character string specifying the variable name (column) of the
observed values in data frame df.
If "points", uses geom_points(), if "hex"
uses ggplot2::geom_hex(), if "heat" uses adjusted
geom_points() with color indicating density, if "density" uses
stat_density_2d() to draw polygons of equal density.
A logical specifying whether the relative RMSE and bias (after division by the mean) is to be showed in the subtitle labels.
A logical specifying whether to display a reduced set of metrics in the subtitle.
A logical specifying whether to display any metrics. Defaults
to TRUE.
A logical specifying whether to display the fitted linear
regression as a red line. Defaults to TRUE.
A character string indicating the color palette. Currently available:
"batlowW", "davos", "magma", "viridis", "cividis". Defaults to "viridis".
An integer specifying how many points to be labelled, starting with points
that have the largest residuals from the linear regression fit. Only available
for type == "points". Defaults to one.