标签: pca outliers biplot
我想从PCA双线图中找到异常值。
我想从我自己的数据集的PC1 vs PC2的Biplot中找到行号(名称或等效名称)。
例如,名称或按行号(与原始数据集有关)是(PC1 <-3)或(PC2> 9)的采样点?即绿色区域。
有想法吗?
```{r} data(iris) pca <- prcomp(iris[,-5],scale=T) #Biplot biplot(pca) abline(h = 9, v = -3, col = "green") ```