Created
October 7, 2019 19:07
-
-
Save monogenea/19901e83ee87eea7b75db78178be61f2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
wineOutlier <- wine | |
wineOutlier[10,] <- wineOutlier[10,]*10 # change the 10th obs. into an extreme one by multiplying its profile by 10 | |
outlierPCA <- prcomp(scale(wineOutlier[,-1])) | |
plot(outlierPCA$x[,1:2], col = wineClasses) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment