Package smile.plot.swing
Class ScreePlot
java.lang.Object
smile.plot.swing.Shape
smile.plot.swing.Plot
smile.plot.swing.ScreePlot
In multivariate statistics, a scree plot is a line plot of the eigenvalues
of factors or principal components in an analysis. The scree plot is used
to determine the number of factors to retain in an exploratory factor
analysis (FA) or principal components to keep in a principal component
analysis (PCA). The procedure of finding statistically significant
factors or components using a scree plot is also known as a scree test.
A scree plot always displays the eigenvalues in a downward curve, ordering the eigenvalues from largest to smallest. According to the scree test, the "elbow" of the graph where the eigenvalues seem to level off is found and factors or components to the left of this point should be retained as significant. It is named after its resemblance to scree after its elbow.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
ScreePlot
public ScreePlot(double[] varianceProportion) Constructor.- Parameters:
varianceProportion
- The proportion of variance contained in each principal component.
-
-
Method Details
-
paint
Description copied from class:Shape
Draws the shape. -
legends
Description copied from class:Plot
Returns the optional name of shape, which will be used to draw a legend outside the box. -
canvas
Description copied from class:Plot
Returns a canvas of the plot. -
getLowerBound
public double[] getLowerBound()Description copied from class:Plot
Returns the lower bound of data.- Specified by:
getLowerBound
in classPlot
-
getUpperBound
public double[] getUpperBound()Description copied from class:Plot
Returns the upper bound of data.- Specified by:
getUpperBound
in classPlot
-