plot.hist.lengths {spMC}R 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")

[Package spMC version 0.3.15 Index]