ageDepthPlot: Make plots of the age probability density functions vs...

View source: R/ageDepthPlot.R

ageDepthPlotR Documentation

Make plots of the age probability density functions vs position for several samples

Description

Make plots of the age probability density functions vs position for several samples

Usage

ageDepthPlot(
  ages,
  ageSds,
  positions,
  ids,
  positionThicknesses = rep(0, length(ages)),
  distTypes = rep("G", length(ages)),
  legend = "color",
  scale = 1,
  ...
)

Arguments

ages

Vector of ages

ageSds

Vector of 1-sigma values for ages. Must be the same length and given in the same order as ages

positions

Vector of stratigraphic positions for ages. Must be the same length and given in the same order as ages

ids

Vector of sample names for each age. All samples with the same ids will be combined into a single age PDF. Must be the same length and given in the same order as ages

positionThicknesses

Vector of stratigraphic uncertanties for each age. Specified as half thicknesses. Must be the same length and given in the same order as ages

distTypes

Vector of distribution types to model each age as. Choices are 'G' for Gaussian, and 'U' uniform. Must be the same length and given in the same order as ages

legend

c('color', 'adjacent', NA) type of legend to be drawn. color draws color coded boxes for each sample, adjacent displays sample names next to each PDF. NA omits the legend.

scale

scale Scaling factor for age PDFs

...

Optional arguments to be passed to plot legend

Details

The ageDepthPlot function makes a plot of the age probability density functions vs stratigraphic position for several samples. All ages with the same name will be combined into a single PDF.


robintrayler/modifiedBChron documentation built on April 16, 2023, 6:28 p.m.