Exploration of Multivariate Data

library(gclus)
library(car)
library(MASS)
library(cluster)
library(lattice)
library(TeachingDemos)
data(wine)
# chernoff faces
faces(aggregate(winelist(wine$Class)FUN=mean)[,-c(1,2)]ncol=3nrow=1)
# LDA on wine data
l <- lda(Class ~ . , data=wine)
plot(lcol=wine$Class)
## Some soils data from the car package
# LDA: all horizons
l <- lda(Contour ~ pH + N + Dens + P + Ca + Ca + Mg + K + Nadata=Soils)
plot(lcol=as.numeric(Soils$Contour))
# just the top horizon
l <- lda(Contour ~ pH + N + Dens + P + Ca + Ca + Mg + K + Nadata=Soilssubset=Depth=='0-10')
plot(lcol=as.numeric(Soils$Contour[Soils$Depth == '0-10']))
X