Plot the PCA result in three dimensions

Asked

Viewed 45 times

0

I made a PCA using stats::prcomp and would like to plot the result in three dimensions. It is possible?

1 answer

2

Use the function pca3d of the package of the same name:

library(pca3d)

irisPCA <- prcomp(iris[, -5], center = TRUE, scale. = TRUE)

pca3d(irisPCA, group = iris$Species)

inserir a descrição da imagem aqui

Browser other questions tagged

You are not signed in. Login or sign up in order to post.