Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # your code goes here
- library(lattice)
- wine=read.csv("~/wine.csv", header=TRUE)
- winepca=prcomp(wine[2:14], scale=TRUE, center=TRUE)
- wineplot=cbind(wine[1], winepca$x[,1:2])
- xyplot(PC2 ~ PC1, grid=TRUE, group=class)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement