Created
March 11, 2017 14:14
-
-
Save wabarr/ed1e290937e07345fc2e035cdd17c7a5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(factoextra) | |
PCA <- prcomp(iris[,1:4], scale=T) | |
fviz(PCA, "var") | |
fviz(PCA, "ind", repel=T, habillage = iris$Species, label='none') | |
fviz_ellipses(PCA,habillage = iris$Species, ellipse.type = "convex", geom="point") + | |
labs(title="mytitle") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this shows how to plot PCA variables, as well as individuals and to plot minimum convex hulls