I use the fviz_pca_ind()
to draw a PCA plot, but the pointsize is deifferent.
this is my code:
library(FactoMineR)
library(factoextra)
pca.res <- PCA(iris[, 1:3])
fviz_pca_ind(pca.res,
geom.ind = 'point',
col.ind = iris$Species,
addEllipses = T,
palette = 'lancet')
and this is the results, as circled in the red box, the point is bigger than other.
So, why did it happened?
And, i saw the fviz_pca_ind
‘s code, i found the pointsize control by the code
if (nrow(df) != length(pointsize))
pointsize <- 1.5
df[["pointsize"]] <- pointsize
pointsize <- "pointsize"
}
but it doesn’t seems to be the reason for the different in pointsize.