Hi,
I would like to colored my sites/ind in my PCA but it doesn't work
I saw I have to use "habillage = " but I can't colored my ind depending on "eco" and have at the same time my var colored with the cos2
This firts code work well
eco <- as.character(Env$Clust
fviz_pca_biplot(res.pca, repel = TRUE,
col.var = "cos2",
gradient.cols = c("#00AFBB", "#E7B800", "#FC4E07")
)
This one work well also and with this one I have my ind colored but I don't have my colored var with cos2
fviz_pca_biplot(res.pca, label="var", habillage=iris$Species,
addEllipses=TRUE, ellipse.level=0.95)
How can I merge these two code ?
I tried to do that but it say "Error: Discrete value supplied to continuous scale" :
fviz_pca_biplot(res.pca, repel = TRUE,
col.var = "cos2",
gradient.cols = c("#00AFBB", "#E7B800", "#FC4E07"),
habillage = eco
)