Learn R Programming

spMC (version 0.2.1)

plot.lengths: Plot Stratum Lengths

Description

The function makes a graphical representation of the stratum lengths.

Usage

## S3 method for class 'lengths':
plot(x, ..., log = FALSE, zeros.rm = TRUE)

Arguments

Value

An image is produced on the current graphics device; by the use of boxplot.lengths, the same image is produced. The function returns a list with the following components:statsa matrix containing the values used to plot the box-and-whisker plots.na vector with the number of observations for each category.confa matrix containing further values to draw the lower and upper extremes of the notch.outa vectors with the values of the outlier points.groupa vector whose elements indicate to which category the outlier belongs.namesa character vector with the names of each category.

Rdversion

1.1

Details

The box-and-whisker plots give some information about the distribution of the stratum lengths for the observed categories along a given direction.

See Also

boxplot.lengths, boxplot, getlen

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)

# Plot the object gl
\dontshow{par(mfrow = c(1,1))}
plot(gl)

Run the code above in your browser using DataLab