data(iris)
X <- iris[, 1:4]
y <- iris[, 5]
table(y)
fm <- fda(X, y)
headm(fm$T)
transform(fm, X[1:3, ])
summary(fm)
plotxy(fm$T, group = y, ellipse = TRUE,
zeroes = TRUE, pch = 16, cex = 1.5, ncol = 2)
points(fm$Tcenters, pch = 8, col = "blue", cex = 1.5)
Run the code above in your browser using DataLab