plotellipse: Plot Ellipse

Description Usage Arguments Details Value Author(s) References Examples

Description

Plots an ellipse with percentage tolerance and a certain location and covariance.

Usage

1
plotellipse(x.loc, x.cov, perc = 0.98, col = NULL, lty = NULL)

Arguments

x.loc

the location vector

x.cov

the covariance

perc

defines the percentage and should be a (vector of) number(s) between 0 and 1

col, lty

graphical parameters

Details

First the radius of the covariance is calculated and then the ellipses for the provided percentages are plotted at the certain location.

Value

Plot with ellipse.

Author(s)

Peter Filzmoser <P.Filzmoser@tuwien.ac.at> http://cstat.tuwien.ac.at/filz/

References

C. Reimann, P. Filzmoser, R.G. Garrett, and R. Dutter: Statistical Data Analysis Explained. Applied Environmental Statistics with R. John Wiley and Sons, Chichester, 2008.

Examples

1
2
3
4
5
6
7
8
data(moss)
Ba=log10(moss[,"Ba"])
Ca=log10(moss[,"Ca"])
plot.new()
plot.window(xlim=range(Ba),ylim=c(min(Ca)-1,max(Ca)))

x=cbind(Ba,Ca)
plotellipse(apply(x,2,mean),cov(x),perc=c(0.5,0.75,0.9,0.98))

StatDA documentation built on March 13, 2020, 2:42 a.m.

Related to plotellipse in StatDA...