Creates a plot showing the error of the sensitivity analysis.
Usage
error_plot(
data,
fill = "coi",
fill_levels = NULL,
title = NULL,
legend_title = fill,
legend.position = "right",
second_fill = NULL
)
Arguments
- data
The data to be plotted.
- fill
The variable the data will be separated by.
- fill_levels
The levels for the fill variable.
- title
The title of the plot. Default to
NULL
.- legend_title
The text for the legend. Default to
NULL
.- legend.position
The position of the legend. One of
"none"
,"left"
,"right"
,"bottom"
,"top"
.- second_fill
Indicates if there will be a second fill variable and what it will be.
Details
Plots are created using ggplot2::geom_col()
, which creates a simple bar
plot. The mean absolute error is plotted in various colors, according to what
parameter is being tested. In addition the 95% confidence interval is shown
as black vertical lines.
See also
ggplot2::geom_col()
for more information on bar plots and the
ggplot2 website.
Other plotting functions:
sensitivity_plot()
,
world_map()