R/plotting.geoChronR.R
plotTimeseriesStack.Rd
Creates a stack of timeseries plots
plotTimeseriesStack(
plot.df,
time.var = "year",
color.var = "paleoData_TSid",
invert.var = NA,
fill.alpha = 0.2,
line.size = 0.5,
scale.factor = 1/3,
scale.height = 0.75,
lab.buff = 0.02,
lab.size = 3,
lab.space = 2,
color.ramp = NA
)
A tidy data.frame, typically the output of tidyTs()
Which variable to put on the x-axis. Must be in plot.df. Typically "year", "age", or "depth"
Which variable to color the timeseries by. The default ("paleoData_TSid") will give each timeseries it's own color. Common other options include "paleoData_variable", "archiveType", or "paleoData_units", but any variable in plot.df should work.
Which variable to use to invert the timeseries. This should point to a variable of "positive" and "negative" (searches on "neg"), or a vector of 1s and -1s. (default = NA, which flips nothing)
Transparency of the shading
thickness of the line (default = 0.5)
Controls how much the timeseries should overlap, with larger numbers overlapping more. (default = 1/3)
Controls how large the y-axes will be. 1 is equivalent to end-to-end coverage with no space. (default = 0.75)
Fraction of the x axis to space the tick marks away from the axes bars (default = 0.02)
Font size for the ylabels
Multiplier on lab.buff for the axis label separation from the y-scale
Specify the colors to use in the plot arranged along color.var. You can do this as single color as a character that will be repeated, as a vector of characters, or a function that creates colors given nColors input (default = NA, which becomes RColorBrewer::brewer.pal(nColors,"Dark2"))
A ggplot object of the plot
Other plot:
plotChron()
,
plotChronEns()
,
plotChronEnsDiff()
,
plotCorEns()
,
plotHistEns()
,
plotLine()
,
plotModelDistributions()
,
plotPcaEns()
,
plotPvalsEnsFdr()
,
plotRegressEns()
,
plotScatterEns()
,
plotScreeEns()
,
plotSpectraEns()
,
plotSpectrum()
,
plotSummary()
,
plotSummaryTs()
,
plotTimeseriesEnsLines()
,
plotTimeseriesEnsRibbons()
,
plotTrendLinesEns()