Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

plotelement

Plot Elements of a Discriminant Analysis


Description

Plot the elements for the discriminant analysis. The plot is ordered in the different groups.

Usage

plotelement(da.object)

Arguments

da.object

a object of the lda class

Author(s)

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

data(iris3)
Iris <- data.frame(rbind(iris3[,,1], iris3[,,2], iris3[,,3]), Sp = rep(c("s","c","v"), rep(50,3)))
train <- sample(1:150, 75) 
z <- MASS::lda(Sp ~ ., Iris, prior = c(1,1,1)/3, subset = train) 

plotelement(z)

StatDA

Statistical Analysis for Environmental Data

v1.7.4
GPL (>= 3)
Authors
Peter Filzmoser
Initial release
2020-03-10

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.