plotShift.RdPlot mean or variance shifts, with uncertainties and null hypothesis testing
Output from actR::detectShift (tibble)
Color palette, single color, or vector of colors to use for confidence intervals (default = "Reds"s)
Color palette, single color, or vector of colors to use for confidence intervals (default = c("grey"))
Plot vertical lines at significant change points? (default = TRUE)
Label significant change points (default = TRUE)
significance levels to plot. The first value will be used to calculate the alpha for significant shifts (default = c(0.95,0.9))
Label the x-axis (default = NA, which will automatically generate from input)
2-element vector to use as x-axis limits (default = NA)
Label the y-axis (default = NA, which will automatically generate from input)
A value of -1 will flip the y-axis for both panels (default = 1) #TODO
Combine the probability and timeseries plots into a single plot (TRUE)? Or return a list with each plot as a separate object (FALSE)?
plot positive, negative or both ("positive/negative" - the default)
Arguments passed on to geoChronR::plotTimeseriesEnsRibbons
add.to.plotA ggplot object to add this plot to. Default is ggplot() .
XA LiPD variable list to plot, including values, units, names, and more
YA LiPD variable list to plot, including values, units, names, and more
alpalpha (transparency) parameter for the ribbons
probsa vector of probabilities to plot as ribbons. It will create bands as ribbons of quantiles moving inward. If there's an odd number, it plots the middle quantile as a line.
x.binvector of bin edges over which to bin.
y.binvector of bin edges over which to bin.
n.binsnumber bins over which to calculate intervals. Used to calculate x.bin if not provided.
color.lowColor of the outermost band; the extreme quantiles of the distribution
color.highColor of the innermost band; the central quantiles of the distribution
color.lineLine color (following ggplot rules)
color.vectorA vector (of length equal to the number of bands) that specifies the colors for the ribbons from the outermost band in (default = NA). Colors specified as string according to ggplot2 conventions. If present, this overrules color.high and color.low
line.widthWidth of the line
export.quantilesIf TRUE, return the plotted quantiles rather than the plot
a ggplot object