Biplots.biplot
— Methodbiplot(table; kind=:form, dim=2, [aesthetics...])
Biplot of table
of given kind
in dim
-dimensional space.
There are four kinds of biplots:
:form
- standard biplot with shape parameterα = 1
:cov
- standard biplot with shape parameterα = 0
:rform
- relative variation biplot withα = 1
:rcov
- relative variation biplot withα = 0
Biplot attributes
kind
- kind of biplot (:form
,:cov
,:rform
or:rcov
)dim
- number of dimensionsdim ∈ {2,3}
(default to2
)
Aesthetics attributes
axescolormap
- colormap of principal axes (default to theme colormap)dotcolormap
- colormap of sample dots (default to theme colormap)fontsize
- font size in axes and dots (default to12
)axesbody
- size of principal axes' body (depends ondim
)axeshead
- size of principal axes' head (depends ondim
)axescolor
- color of principal axes (default to:black
)axeslabel
- names of principal axes (default tox1,x2,...
)dotsize
- size of sample dots (depends ondim
)dotcolor
- color of sample dots (default to:black
)dotlabel
- names of sample dots (default to1:nobs
)showdots
- show names of dots (default totrue
)showlinks
- show links between principal axes (default tofalse
)
See https://en.wikipedia.org/wiki/Biplot.
References
Gabriel, K. 1971. The Biplot Graphic Display of Matrices with Application to Principal Component Analysis
Aitchison, J. & Greenacre, M. 2002. Biplots of Compositional data
Biplots.factors
— Methodfactors(table; kind=:form, dim=2)
Return F
, G/k
and σ²
where F
and G
are the factors (i.e. matrices with rank dim
) of the design matrix Z
obtained with a given kind
of transformation.
The scalar κ
scales the column vectors for plotting purposes and the variance explained σ²
is also returned.