Learn R Programming

spMC (version 0.2.1)

plot.density.lengths: Plot Empirical Densities Estimates of Stratum Lengths

Description

The function plot the empirical densities of stratum lengths computed along a given direction.

Usage

## S3 method for class 'density.lengths':
plot(x, main = NULL, xlab = NULL, ylab = "Density", type = "l",
     zero.line = TRUE, ...)

Arguments

Value

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

Rdversion

1.1

See Also

density.default, density.lengths, plot, print.density.lengths

Examples

Run this code
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)

Run the code above in your browser using DataLab