draw.pbmodelled: Plot the 210Pb data

View source: R/forplum.R

draw.pbmodelledR Documentation

Plot the 210Pb data

Description

Produce a plot of the 210Pb data and their depths

Usage

draw.pbmodelled(
  set = get("info"),
  BCAD = set$BCAD,
  rotate.axes = FALSE,
  rev.d = FALSE,
  rev.age = FALSE,
  pb.lim = c(),
  d.lim = c(),
  d.lab = c(),
  pb.lab = c(),
  pbmodelled.col = function(x) rgb(0, 0, 1, x),
  pbmeasured.col = "blue",
  supp.col = "purple",
  plot.measured = TRUE,
  age.lim = c(),
  mgp = mgp,
  pb.lty = 1
)

Arguments

set

Detailed information of the current run, stored within this session's memory as variable info.

BCAD

The calendar scale of graphs is in cal BP by default, but can be changed to BC/AD using BCAD=TRUE.

rotate.axes

The default of plotting age on the horizontal axis and event probability on the vertical one can be changed with rotate.axes=TRUE.

rev.d

The direction of the depth axis can be reversed from the default (rev.d=TRUE).

rev.age

The direction of the calendar age axis can be reversed from the default (rev.age=TRUE)

pb.lim

Minimum and maximum of the 210Pb axis ranges, calculated automatically by default (pb.lim=c()).

d.lim

Minimum and maximum depths to plot; calculated automatically by default (d.lim=c()).

d.lab

The labels for the depth axis. Default d.lab="Depth (cm)".

pb.lab

The label for the 210Pb axis (default pb.lab="210Pb (Bq/kg)" or "210Pb (dpm/g)").

pbmodelled.col

Colour of the modelled 210Pb values. Defaults to scales of blue: pbmodelled.col=function(x) rgb(0,0,1,x).

pbmeasured.col

Colour of the measured 210Pb values. Defaults to blue.

supp.col

Colour of the supported 210Pb data. Defaults to red: supp.col="red".

plot.measured

Plot the measured 210Pb values (default plot.measured=TRUE).

age.lim

values of the age axis. Used to calculate where to plot the pb values on the secondary axis

mgp

Axis text margins (where should titles, labels and tick marks be plotted). Defaults to mgp=c(1.7, .7, .0).

pb.lty

Line type of measured Pb-210 data.

Details

This function is generally called internally to produce the age-depth graph. It can be used to produce custom-built graphs.

Value

A plot of the modelled (and optionally the measured) 210Pb values

Author(s)

Maarten Blaauw, J. Andres Christen, Marco Aquino-Lopez


rbacon documentation built on Sept. 30, 2024, 9:40 a.m.