Learn R Programming

dplR (version 1.6.8)

spag.plot: Spaghetti Plot

Description

Makes a spaghetti plot of tree-ring data.

Usage

spag.plot(rwl, zfac = 1, useRaster = FALSE, res = 150, …)

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.

useRaster

A logical flag. If TRUE, the tree-ring series are drawn as a raster image. Other parts of the plot are not affected. Other choices are NA (automatic) and FALSE (use vector graphics, the default). See wavelet.plot.

res

A numeric vector of length 1. The resolution (pixels per inch) of the tree-ring series when a raster image is used.

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 data set. 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
# NOT RUN {
library(utils)
data(co021)
spag.plot(co021)
spag.plot(co021, zfac = 2)
# }

Run the code above in your browser using DataLab