Plot or add probability distributions from a paleo or chron model to a plot.
plotModelDistributions(
L,
dist.var = "age",
y.var = "depth",
mode = "chron",
paleo.or.chron.num = 1,
model.num = 1,
add.to.plot = ggplot(),
alp = 0.5,
color = "purple",
scale.frac = 0.02,
dist.plot = NA,
dist.type = "violin",
thick = 0.1,
truncate.dist = NA
)
A LiPD object - an R serialization of a single LiPD file. It's a list, and is typically created by `readLipd()`
Name of the distribution variable, will be plotted along the x-axis. Use coord_flip() after running the function if you want vertical distributions. "age" by default.
Name of the y-axis variable. "depth" by default.
chron or paleo
number of the chron or paleo Data object
number of the model object
A ggplot object to add this plot to. Default is ggplot()
transparency, from 0 to 1
distribution color (following ggplot rules)
controls the vertical span of the probability distribution. Approximately the vertical fraction of the plot that the distribution will cover.
vector of distribution tables to plot
"violin" (default), "high" for one-sided distributions towards higher depths, "low" for one-sided distributions towards lower depths
thickness of the line around the distribution
truncate probability density values below this number. NA (default) means no truncation
A ggplot object
Other plot:
plotChron()
,
plotChronEns()
,
plotChronEnsDiff()
,
plotCorEns()
,
plotHistEns()
,
plotLine()
,
plotPcaEns()
,
plotPvalsEnsFdr()
,
plotRegressEns()
,
plotScatterEns()
,
plotScreeEns()
,
plotSpectraEns()
,
plotSpectrum()
,
plotSummary()
,
plotSummaryTs()
,
plotTimeseriesEnsLines()
,
plotTimeseriesEnsRibbons()
,
plotTimeseriesStack()
,
plotTrendLinesEns()
Other chron:
plotChron()
,
plotChronEns()
,
plotChronEnsDiff()