Memvisualisasikan dan menafsirkan hasil PCA

Unsupervised Learning di R

Hank Roark

Senior Data Scientist at Boeing

Biplot

biplot

Unsupervised Learning di R

Plot scree

plot scree

Unsupervised Learning di R

Biplot di R

# Creating a biplot
pr.iris <- prcomp(x = iris[-5], 
                  scale = FALSE, 
                  center = TRUE)
biplot(pr.iris)

biplot

Unsupervised Learning di R

Plot scree di R

# Getting proportion of variance for a scree plot
pr.var <- pr.iris$sdev^2
pve <- pr.var / sum(pr.var)

# Plot variance explained for each principal component plot(pve, xlab = "Principal Component", ylab = "Proportion of Variance Explained", ylim = c(0, 1), type = "b")
Unsupervised Learning di R

plot scree

Unsupervised Learning di R

Ayo berlatih!

Unsupervised Learning di R

Preparing Video For Download...