Number of PCs using scree plot
Now you will implement the elbow method relating to the change in the relative importance of the variance to choose the number of components. We will use the pca.state object containing the PCs of the state.x77 to implement this method.
本练习是课程的一部分
Multivariate Probability Distributions in R
练习说明
- Use the
screeplot()function to plot the relative importance of the variance explained by the eight PC's of thestate.x77dataset.
交互式实操练习
通过完成这段示例代码来试试这个练习。
# Draw screeplot
screeplot(___, type = "l")
grid()