Learn R Programming

analogue (version 0.17-7)

histogram.residLen: Lattice histogram plot for residual lengths

Description

Lattice histogram method for residLen objects.

Usage

# S3 method for residLen
histogram(x, ..., xlab = NULL, ylab = NULL,
          type = c("percent", "count", "density"))

Value

Returns an object of class "trellis". See

histogram for details.

Arguments

x

Object of class "residLen", the result of a call to residLen.

xlab, ylab

Axis labels. If not supplied, suitable defaults are generated, depending on whether RDA or CCA was used as the underlying ordination model.

type

Character string indicating type of histogram to be drawn. "percent" and "count" give relative frequency and frequency histograms, and can be misleading when breakpoints are not equally spaced. "density" produces a density scale histogram.

See histogram for further details.

...

Additional arguments passed to histogram.

Author

Gavin L. Simpson

See Also

residLen, plot.residLen, hist.residLen, densityplot.residLen.

Examples

Run this code
## load the Imbrie and Kipp example data
data(ImbrieKipp, SumSST, V12.122)

## squared residual lengths for Core V12.122
rlens <- residLen(ImbrieKipp, SumSST, V12.122)
rlens

## plot a histogram of the residual distances
histogram(rlens)

Run the code above in your browser using DataLab