I use the iris dataset as an example. I have set mean.point-TRUE
which gives mean points for setosa (red round), versicolor (green triangle), virginica (blue square) as well as the factors (steelblue dot). I wish to make the steelblue dot to not appear while keeping everything else as is. How do I do this?
Here is the code:
library(tidyverse)
library(factoextra)
library(FactoMineR)
Groups<-as.factor(iris$Species)
res.pca<-prcomp(iris[-5], scale. = TRUE, center = TRUE)
fviz_pca_biplot(res.pca,
mean.point=TRUE,
pointsize=1,
habillage=Groups,
addEllipses = TRUE,
label = FALSE)
And here is the output: