plot_ar_i: Plot to compare re-sampled and non-resampled accumulation...

View source: R/plot_ar_i.R

plot_ar_iR Documentation

Plot to compare re-sampled and non-resampled accumulation rates

Description

Requires an object returned by the tapas::pretreatment() function. Non-resampled accumulation rates are presented using grey bars. The re-sampled accumulation rates at equal sampling intervals are presented by a black curve. Modified from the plot.CHAR() function (paleofire v1.2.4 R package).

Usage

plot_ar_i(
  x,
  xlim = NULL,
  ylim = NULL,
  xlab = NULL,
  ylab = NULL,
  frame = TRUE,
  main = NULL,
  ...
)

Arguments

x

An list returned by the tapas::pretreatment() function.

xlim

Optional. Determines the limits of the age scale. By default (xlim = NULL), the age-scale limits are in the form: xlim = c(older limit, younger limit).

ylim

Optional. Determines the limits of the y-axis scale. By default, ylim = NULL.

xlab

Optional. A character string specifying the units of the age scale. By default xlab = NULL and the x-axis scale label is written as age.

ylab

Optional. A character string specifying the units of the y-axis. By default ylab = NULL and the y-axis scale label is written as accInit.

frame

Logical. Determines if the plot is framed. By default, frame = TRUE.

main

Optional. A character string specifying the main plot title.

...

...

Author(s)

Olivier Blarquez

Examples

## Not run: 
# Here, we use the charcoal record from Code Lake (Higuera et al., 2009)
# Load raw charcoal data:
co <- tapas::co_char_data
c <- co[, 6] # charcoal counts
p <- co[, 1:5] # CmTop, CmBot, AgeTop, AgeBot, Volume

# Calculate resampled charcoal accumulation rate (CHAR, as pieces cm-2 yr-1)
co_CHAR <- tapas::pretreatment(params = p, serie = c, Int = TRUE)
tapas::plot_ar_i(co_CHAR)

## End(Not run)

wfinsinger/tapas documentation built on Aug. 22, 2024, 4:28 a.m.