plotelement | R Documentation |
Plot the elements for the discriminant analysis. The plot is ordered in the different groups.
plotelement(da.object)
da.object |
a object of the lda class |
No return value, creates a plot.
Peter Filzmoser <P.Filzmoser@tuwien.ac.at> http://cstat.tuwien.ac.at/filz/
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.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.