Define a caption for plot_dvtime
dvtime_caption(cent, log_y = FALSE, obs_dv = TRUE, grp_dv = FALSE)
Character string specifying the central tendency measure to plot.
Options are:
Mean only: "mean"
(default)
Mean +/- Standard Deviation: "mean_sdl"
Median only: "median"
Median +/- Interquartile Range: median_iqr
None: "none"
Logical indicator for log10 transformation of the y-axis.
Logical indicating if observed data points should be shown. Default is TRUE
.
Logical indicating if observed data points should be connected within a group (i.e., spaghetti plot).
Default is FALSE
.
a character
string containing the plot caption
dvtime_caption(cent = "mean")
#> [1] "Solid circles and thick lines are the mean\nOpen circles are observations"
dvtime_caption(cent = "mean", log_y = TRUE)
#> [1] "Solid circles and thick lines are the geometric mean\nOpen circles are observations"