Learn R Programming

provenance (version 4.4)

ternary.ellipse: Ternary confidence ellipse

Description

plot a \(100(1-\alpha)\%\) confidence region around the data or around its mean.

Usage

ternary.ellipse(x, ...)

# S3 method for default ternary.ellipse(x, alpha = 0.05, population = TRUE, ...)

# S3 method for compositional ternary.ellipse(x, alpha = 0.05, population = TRUE, ...)

# S3 method for counts ternary.ellipse(x, alpha = 0.05, population = TRUE, ...)

Arguments

x

an object of class ternary

...

optional formatting arguments

alpha

cutoff level for the confidence ellipse

population

show the standard deviation of the entire population or the standard error of the mean?

Examples

Run this code
data(Namib)
tern <- ternary(Namib$Major,'CaO','Na2O','K2O')
plot(tern)
ternary.ellipse(tern)

Run the code above in your browser using DataLab