Exercise

Visualizing components

PCA results in theory can help you distinguish between multiple classes in an output variable. A good way to visualize this is to plot your components to determine how well they help you distinguish between classes in your output. The poke_df data frame and the PCA results poke_pca have been preloaded for you.

Instructions

100 XP
  • Use the autoplot() function to plot the first two components of your Pokemon PCA results and include the data and the grouping variable.