Plot observed densities
# S3 method for obs
plot(
x,
...,
dens_2 = NA,
dens_3 = NA,
lim = c(-1, 1),
time_unit = NA,
combined = TRUE,
color_actual = "darkgrey",
color_dens_1 = "#f68f46ff",
color_dens_2 = "#593d9cff",
color_dens_3 = "#efe350ff"
)input
arguments passed on to the function
density 2 (if any). By default, `NA`.
density 3 (if any). By default, `NA`.
limits of the scale for the average residual fields. By default, c(0, -1). To set limits manually, provide a vector of max and min
x-axis label of the output
whether to combine the two plots. By default, TRUE. If TRUE, then the plot function produces one ggplot object. If FALSE, three objects (two ggplot and one dataframe) will be produced.
name of the color for the actual density
name of the color for the predicted density
name of the color for another predicted density (usually for the out-of-sample prediction)
another color for an alternate density for out-of-sample prediction