hist.lengths | R Documentation |
The function compute the histograms of the stratum lengths for each category. If plot = TRUE
, the resulting object of class hist.lengths
is plotted before it is returned.
## S3 method for class 'lengths'
hist(x, ..., log = FALSE, zeros.rm = TRUE)
x |
an object of the class |
... |
further arguments to pass to the function |
log |
a logical value. If |
zeros.rm |
a logical value. If |
If plot = TRUE
, an image is produced on the current graphics device. The function returns an object of class hist.lengths
. It contains class histogram
objects, the given direction of the stratum lengths and a logical value which points out if histograms are computed for the logarithm of stratum lengths.
Luca Sartore drwolf85@gmail.com
getlen
, hist
, density.lengths
, plot.density.lengths
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)
# Plot the histograms
hist(gl)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.