Biplot
biplot(
creates a biplot of the
coefficients in the matrix coefs
)coefs
. The biplot is 2-D if
coefs
has two columns or 3-D if it has three columns. The axes in the
biplot represent the columns of coefs
, and the vectors in the biplot
represent the rows of coefs
(the observed variables).
biplot(
specifies additional options using one or more name-value pair arguments. For example, you
can specify coefs
,Name,Value
)'Positive','true'
to restrict the biplot to the positive
quadrant (in 2-D) or octant (in 3-D).
returns a column
vector of handles to the graphics objects created by h
= biplot(___)biplot
. Use
h
to query and modify properties of specific graphics objects. For
more information, see Graphics Object
Properties.
A biplot allows you to visualize the magnitude and sign of each variable's contribution to
the first two or three principal components, and to represent each observation in terms of
those components. The biplot
function:
Imposes a sign convention, forcing the element with the largest magnitude in each
column of coefs
to be positive. This action flips some of the vectors
in coefs
to the opposite direction, but often makes the plot easier
to read. Interpretation of the plot is unaffected, because changing the sign of a
coefficient vector does not change its meaning.
Scales the scores so that they fit on the plot. That is, the function divides each
score by the maximum absolute value of all scores, and multiplies by the maximum
coefficient length of coefs
. Then biplot
changes
the sign of the score coordinates according to the sign convention for the
coefficients.