anderwyang
anderwyang

Reputation: 2441

Package factoextra function fviz_pca_biplot plot transfer to interaction plot using plotly::ggplotly, the labels in plot will lost

When the output of factoextra::fviz_plot() is transfered to interaction plot using plotly::ggplotly(), the labels get lost. How to fix it?

library("FactoMineR")
library("factoextra")

res.pca <- prcomp(iris[, -5], scale = TRUE)

fviz_plot <- fviz_pca_biplot(res.pca,repel = TRUE)

plotly::ggplotly(fviz_plot)

Upvotes: 0

Views: 33

Answers (0)

Related Questions