Exercise

# Loadings and scores for the PCs

The primary goal of PCA is dimension reduction, which is often necessary to view high dimensional data. Plotting the PC scores in two dimensions is one way to visualize high dimensional data.

Instructions 1/2

**undefined XP**

- Create a dataframe of the scores of the PCs of
`state.x77`

using the`pca.state`

object. - Use the
`ggplot()`

function to plot the scores of Component 1 and Component 2 and label the points by the state names.