I do clustering after PCA conversion, and I would like to visualize the clustering results in the first two or three dimensions of the PCA space, as well as the contribution from the source axes to the PCA projects.
I am using a library factoextrathat uses ggplot and it works fine , but I want to remove the legend :
My code is:
data(iris)
pca <- prcomp(iris[,-5], scale=TRUE)
df.pca <- pca$x
kc <- kmeans(df.pca[,1:3], 5)
library(factoextra)
fviz_pca_biplot(pca, label="var", habillage=as.factor(kc$cluster)) +
labs(color=NULL) + ggtitle("") +
theme(text = element_text(size = 15),
panel.background = element_blank(),
panel.grid.major = element_blank(),
panel.grid.minor = element_blank(),
axis.line = element_line(colour = "black"),
legend.key = element_rect(fill = "white"))

How to remove legend columns on the right?
An equivalent biplot without using any library would also be a welcome solution.
PS:
Even in 3-D, a pretty good biplot is pretty good:
library(rgl)
text3d(pca$x[,1:3],texts=rep("*",dim(pca$x)[1]), col=kc$cluster)
text3d(1*pca$rotation[,1:3], texts=rownames(pca$rotation), col="red")
coords <- NULL
for (i in 1:nrow(pca$rotation)) {
coords <- rbind(coords, rbind(c(0,0,0),1*pca$rotation[i,1:3]))
}
lines3d(coords, col="blue", lwd=1)