Learn R Programming

hotspots (version 1.0.3)

plot.hotspots: Plotting hot spot and outlier cutoffs

Description

plot method for class "hotspots".

Usage

## S3 method for "hotspots" objects
# S3 method for hotspots
plot(x, pch = par("pch"), ...)

Arguments

x

"hotspots" object

pch

plotting character. See par

further plotting parameters to pass to densityplot

Value

An object of class "trellis".

Details

Uses the function densityplot from the lattice package to show the distribution of the data and the position of the positive and/or negative hot spot or outlier cutoffs.

See Also

hotspots, summary.hotspots, densityplot

Examples

Run this code
# NOT RUN {
#both tails on skewed data
rln100pn <- hotspots(c(rlnorm(50),rlnorm(50)*-1),tail = "both")
plot(rln100pn)

#modify graphical parameters
plot(rln100pn, pch = 16, cex = 1.5)
# }

Run the code above in your browser using DataLab