Displays the proportion of variance explained by the leading principal components. The function caps the number of displayed components to keep the visualization legible on very high-dimensional problems.
Arguments
- pca_result
A list created by
pca_bigmatrix()
orpca_stream_bigmatrix()
containing standard deviation and explained variance elements.- max_components
Maximum number of components to display. Defaults to 25 or the available number of components, whichever is smaller.
- cumulative
Logical flag indicating whether to overlay the cumulative explained variance line.
- draw
Logical; set to
FALSE
to return the prepared data without drawing a plot (useful for testing).- ...
Additional parameters passed to
plot()
.