View source: R/plot_chron_info.R
plot_chron_info | R Documentation |
Adds a secondary scale for strat.plot
plot_chron_info(x, yvar, dates, xLeft = 0, cex = 0.8)
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 |
cex |
font size |
secondary_scale
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.