View source: R/analyse_modobs2.R
analyse_modobs2 | R Documentation |
Calculates a set of performance statistics and optionally creates plots of modelled versus observed values.
analyse_modobs2( df, mod, obs, type = "points", filnam = NA, relative = FALSE, xlim = NULL, ylim = NULL, use_factor = NULL, shortsubtitle = FALSE, rsquared = TRUE, plot_subtitle = TRUE, plot_linmod = TRUE, plot_legend = TRUE, label = FALSE, id = NULL, nlabels = 1, ... )
df |
A data frame containing columns with names corresponding to arguments
|
mod |
A character string specifying the variable name (column) of the
modelled (simulated) values in data frame |
obs |
A character string specifying the variable name (column) of the
observed values in data frame |
type |
If |
filnam |
A character string specifying the name of the file containing
the plot. Defaults to |
relative |
A logical specifying whether the relative RMSE and bias (after division by the mean) is to be showed in the subtitle labels. |
shortsubtitle |
A boolean specifying whether to display a reduced set of metrics in the subtitle. |
rsquared |
A boolean specifying whether to display R-squared and the RMSE
(if |
plot_subtitle |
A boolean specifying whether to display any metrics. Defaults
to |
plot_linmod |
A boolean specifying whether to display the fitted linear
regression as a red line. Defaults to |
plot_legend |
A boolean specifying whether to display a legend for the colors.
Defaults to |
label |
A boolean specifying whether points should be labelled using ggrepel.
Defaults to |
id |
A character string specifying the column name that identifies the points.
The column's values must be of type integer and is used to label points in case of
|
nlabels |
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.