plot_add_box: Low level plotting function to add sudo confidence range to...

Description Usage Arguments Value See Also Examples

View source: R/plot-add-box.R

Description

Low level plotting function to add sudo confidence range to calibration plots.

Usage

1
plot_add_box(plot, range = c(0.5, 0.2))

Arguments

plot

ggplot2 object.

range

max and min relative change of data. Default is c(0.5, 0.2).

Value

ggplot2 plot.

See Also

Other low-level-plot functions: plot_add_range

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# 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)

# You can set the upper and lower range as you like!
plot_add_box(plot, range = c(0.8, 0.4))

atlantistools documentation built on Aug. 16, 2017, 9:05 a.m.