modelPlot: This function generates two age model plots given the output...

View source: R/modelPlot.r

modelPlotR Documentation

This function generates two age model plots given the output of an ageModel run.

Description

This function generates two age model plots given the output of an ageModel run.

Usage

modelPlot(
  model,
  agePredictOutput = NA,
  predictLabels = "both",
  scale = 1,
  type = "PDF",
  legend = "color",
  ...
)

Arguments

model

Output of the ageModel function

agePredictOutput

Output of the agePredict function. If specified, points and error bars will be added to the age model plots for the predicted points

predictLabels

c('ages','ids','both', NA) should predicted ages and names for for points be displayed? Defaults to display both. Set to NA for no labels

scale

Scaling factor for age PDFs

type

c('PDF', contour') Shound probability be displayed as likelihood input PDFs or as contours of posterior probability. Defaults to PDF

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.

...

Optional arguments to be passed to plot (xlim, ylim, xlab, ylab, main)


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