plotShift.Rd
Plot 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.plot
A ggplot object to add this plot to. Default is ggplot() .
X
A LiPD variable list to plot, including values, units, names, and more
Y
A LiPD variable list to plot, including values, units, names, and more
alp
alpha (transparency) parameter for the ribbons
probs
a 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.bin
vector of bin edges over which to bin.
y.bin
vector of bin edges over which to bin.
n.bins
number bins over which to calculate intervals. Used to calculate x.bin if not provided.
color.low
Color of the outermost band; the extreme quantiles of the distribution
color.high
Color of the innermost band; the central quantiles of the distribution
color.line
Line color (following ggplot rules)
color.vector
A 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.width
Width of the line
export.quantiles
If TRUE, return the plotted quantiles rather than the plot
a ggplot object