Learn R Programming

dplR (version 1.2.4)

crn.plot: Plots a Tree-Ring Chronology

Description

This function makes a default plot of a tree-ring chronology from a data.frame of the type produced by chron.

Usage

crn.plot(crn,add.spline=FALSE,nyrs=NULL,f=NULL,...)

Arguments

crn
a data.frame as produced by chron. The data.frame should have the years in rownames(crn), the chronologies in the columns. Optionally, the last column can contain the sample depth named
add.spline
a logical flag. Will add a line with a smoothing spline.
nyrs
a number giving the rigidity of the smoothing spline, defaults to 0.33 of series length if nyrs is NULL.
f
a number between 0 and 1 giving the frequency response or wavelength cutoff. Defaults to 0.5 if f is NULL.
...
other arguments passed to plot.

Value

  • None. Invoked for side effect (plot).

Details

This makes a simple plot of one or more tree-ring chronologies.

See Also

chron

Examples

Run this code
data(cana157)
  crn.plot(cana157)

  # Without sample depth
  cana157.mod <- data.frame(TTRSTD=cana157[,1])
  rownames(cana157.mod) <- rownames(cana157)
  crn.plot(cana157.mod,add.spline=TRUE)

  # With multiple chronologies
  data(ca533)
  ca533.rwi <- detrend(rwl = ca533, method = "ModNegExp")
  ca533.crn <- chron(ca533.rwi, prefix = "CAM", prewhiten = TRUE)
  crn.plot(ca533.crn,add.spline=TRUE,nyrs=64)

Run the code above in your browser using DataLab