Plot a chronology, either from a chron model (preferred) or from a chron measurement table if there is no model

plotChron(
  L,
  chron.number = NA,
  meas.num = NA,
  depth.var = "depth",
  age.var = "age",
  age.14c.var = "age14C",
  dot.size = 5,
  legend.position = c(0.7, 0.3),
  ...
)

Arguments

L

A LiPD object - an R serialization of a single LiPD file. It's a list, and is typically created by `readLipd()`

chron.number

chron.numData object to use (NA by default, will ask if needed)

meas.num

chron.numData model to use (NA by default, will ask if needed)

depth.var

variableName to use for depth ("depth" by default)

age.var

variableName to use for age ensemble ("age" by default)

age.14c.var

variableName to use for age ensemble ("age14C" by default)

dot.size

what size dot for the chron plot? Only used if not plotting by plotChronEns() (default = 5)

legend.position

where to put the legend on the chron plot?

...

Arguments passed on to plotChronEns

model.num

chron.numData model to use (NA by default, will ask if needed)

probs

quantiles to calculate and plot

n.bins

number bins over which to calculate intervals. Used to calculate x.bin if not provided.

x.bin

vector of bin edges over which to bin.

y.bin

vector of bin edges over which to bin.

color.low

Band color of the outer most band.

color.high

Band color of the inner most band.

alp

Transparency of the band plot

color.line

Line color (following ggplot rules)

line.width

Width of the line

add.to.plot

A ggplot object to add this plot to. Default is ggplot() .

n.ens.plot

Number of ensemble members to plot

color.ens.line

color of the ensemble lines

alp.ens.line

transparency of the lines

dist.color

distribution color (following ggplot rules)

dist.type

"violin" (default), "up" for one-sided distributions pointed up, "down" for one-sided distributions pointed down

dist.thick

thickness of the line around the distribution

dist.alp

alpha of the distribution

truncate.dist

truncate probability density values below this number. NA (default) means no truncation

dist.scale

controls the vertical span of the probability distribution. Approximately the vertical fraction of the plot that the distribution will cover.

add.paleo.age.depth

add a line that shows the paleoData age depth.

paleo.number

paleo.num number for the paleoData age-depth

color.line.paleo

line color of the paleoData age-depth (following ggplot rules)

plot.traces

Add timeseries lines to the plot (default = TRUE)

Value

a ggplot object, or NA if there's chronData to plot

Author

Nick McKay