Learn R Programming

dplR (version 1.5.3)

spag.plot: Spaghetti Plot

Description

Makes a spaghetti plot of tree-ring data.

Usage

spag.plot(rwl, zfac = 1, ...)

Arguments

rwl
a data.frame with series as columns and years as rows such as that produced by read.rwl.
zfac
a multiplier for rwl to enhance clarity when plotting.
...
arguments to be passed to lines.

Value

  • None. This function is invoked for its side effect, which is to produce a plot.

Details

This makes a simple plot of each series in a tree-ring dataset. Each series is centered first by subtracting the column mean using scale. The plot can be grossly tuned with zfac which is a multiplier to rwl before plotting and centering.

See Also

seg.plot

Examples

Run this code
data(ca533)
spag.plot(ca533, main = "Campito Mountain")
spag.plot(ca533, zfac = 2, main = "Campito Mountain")

Run the code above in your browser using DataLab