Learn R Programming

spMC (version 0.3.15)

plot.hist.lengths: Plot Histograms of Stratum Lengths

Description

The function plots objects of class hist.lengths.

Usage

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

Value

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

Arguments

x

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

...

further plotting parameters.

Author

Luca Sartore drwolf85@gmail.com

See Also

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

Examples

Run this code
# \donttest{
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")
# }

Run the code above in your browser using DataLab