Adds vertical lines to an existing plot using any variable that shares the same length as the time axis of the current plot. Line widths corresponds to magnitude of values.
addShadedBackground(
param,
timeAxis,
breaks = stats::quantile(param, na.rm = TRUE),
col = "blue",
maxOpacity = 0.2,
lwd = 1
)
vector of data to be represented
vector of times of the same length as param
set of breaks used to assign colors
color for vertical lines
maximum opacity
line width