Dimensionality Reduction in R
Matt Pickard
Owner, Pickard Predictives, LLC

Do not use the whole plant, just the best parts







library(ggfortify)pca_res <- prcomp(attrition_df %>% select(-Attrition), scale. = TRUE)autoplot(pca_res,data = attrition_df,colour = "Attrition",alpha = 0.7,loadings = TRUE,loadings.label = TRUE,loadings.colour = "black",loadings.label.colour = "black",loadings.label.repel = TRUE)
Dimensionality Reduction in R