R/plot-add-box.R
plot_add_box.Rd
Low level plotting function to add sudo confidence range to calibration plots.
plot_add_box(plot, range = c(0.5, 0.2))
plot | ggplot2 object. |
---|---|
range | max and min relative change of data. Default is |
ggplot2 plot.
Other low-level-plot functions:
plot_add_range()
# Make sure to use a relative timeseries generated with \code{\link{convert_relative_initial}}. df <- convert_relative_initial(preprocess$structn_age) # Create the plot with \code{\link{plot_line}}. plot <- plot_line(df, col = "agecl") # Add lower and upper range. plot_add_box(plot)