plot.density.lengths | R Documentation |
The function plot the empirical densities of stratum lengths computed along a given direction.
## S3 method for class 'density.lengths'
plot(x, main = NULL, xlab = NULL, ylab = "Density", type = "l",
zero.line = TRUE, ...)
x |
an object of the class |
main |
an overall title for the plot. |
xlab |
a title for the |
ylab |
a title for the |
type |
plotting parameter for the type of graphic (see |
zero.line |
logical value. If |
... |
other plotting parameters. |
An image is produced on the current graphics device. No values are returned.
Luca Sartore drwolf85@gmail.com
density.default
, density.lengths
, plot
, print.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)
# Compute the empirical densities of stratum log-lengths
dgl <- density(gl, log = TRUE)
# Plot the empirical densities of stratum log-lengths
plot(dgl)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.