statsmodels.multivariate.pca.PCA.plot_scree#
- PCA.plot_scree(ncomp=None, log_scale=True, cumulative=False, ax=None)[source]#
Plot of the ordered eigenvalues
- Parameters:
- ncomp
int,optional Number of components to include in the plot. If None, will included the same as the number of components computed
- log_scalebool,
optional Flag indicating whether to use a log scale for the y-axis
- cumulativebool,
optional Flag indicating whether to plot the eigenvalues or cumulative eigenvalues
- ax
AxesSubplot,optional An axes on which to draw the graph. If omitted, a new figure is created
- ncomp
- Returns:
matplotlib.figure.FigureThe handle to the figure.