plot.hist.lengths: Plot Histograms of Stratum Lengths

plot.hist.lengthsR Documentation

Plot Histograms of Stratum Lengths

Description

The function plots objects of class hist.lengths.

Usage

## S3 method for class 'hist.lengths'
plot(x, ...)

Arguments

x

an object of the class hist.lengths, typically with the output of the function hist.lengths.

...

further plotting parameters.

Value

An image is produced on the current graphics device. No values are returned.

Author(s)

Luca Sartore drwolf85@gmail.com

See Also

hist, hist.lengths, plot, print.density.lengths

Examples


data(ACM)
direction <- c(0,0,1)
     
# Compute the appertaining directional line for each location
loc.id <- which_lines(ACM[, 1:3], direction)
     
# Estimate stratum lengths
gl <- getlen(ACM$MAT3, ACM[, 1:3], loc.id, direction)

# Compute the histograms
hgl <- hist(gl, plot = FALSE)

# Plot the histograms
plot(hgl, col = "#efffef")

spMC documentation built on May 3, 2023, 9:13 a.m.