R/plot-add-range.R
plot_add_range.Rd
This function can be used to add the range of observed data to a timeseries plot
generated with plot_line
. The density of the color gives an indication
of the likelihood of the value.
plot_add_range(plot, ex_data)
plot | ggplot2 object. |
---|---|
ex_data | Dataframe with observed values for the specific timeseries. |
ggplot2 plot.
Other low-level-plot functions:
plot_add_box()
# There is no external data so we need to add some noise first! ex_data <- preprocess$biomass ex_data$atoutput <- ex_data$atoutput * runif(n = nrow(ex_data), 0, 1) ex_data$model <- "test" # Create the timeseries with \code{\link{plot_line}} plot <- plot_line(preprocess$biomass) # Add the external data as geom_rug with \code{\link{plot_add_range}} plot_add_range(plot, ex_data)