plot_chron_info: Secondary scale for strat.plot

View source: R/plot_chron_info.R

plot_chron_infoR Documentation

Secondary scale for strat.plot

Description

Adds a secondary scale for strat.plot

Usage

plot_chron_info(x, yvar, dates, xLeft = 0, cex = 0.8)

Arguments

x

a stratigraphic diagram object produced by strat.plot.

yvar

y variable. Same as main plot, probably depth

dates

data.frame with columns 'up“, 'down', 'age', 'error'

xLeft

Position of plot. See strat.plot

cex

font size

Details

secondary_scale

Examples

library(rioja)
library(tibble)
data(RLGH)
fos <- RLGH$spec
chron <- RLGH$depths
dates <- tribble(~up, ~down, ~age, ~error,
                  4,      5,   1970,   5,
                  15,     20,  1900,  20)
pt <- strat.plot(fos, yvar = chron$Depth, y.rev = TRUE, xLeft = 0.3, scale.percent = TRUE)
plot_chron_info(pt, yvar = chron$Depth, dates = dates)

richardjtelford/ggpalaeo documentation built on Nov. 7, 2022, 11:03 p.m.