Prepare Data for Plotting
Arguments
- x
A
MultivariateAnalysisobject.- margin
A length-one
numericvector giving the subscript which the data will be returned:1indicates individuals/rows (the default),2indicates variables/columns.- ...
Further graphical parameters.
- axes
A length-two
numericvector giving the dimensions to be plotted.- active
A
logicalscalar: should the active observations be plotted?- sup
A
logicalscalar: should the supplementary observations be plotted?- principal
A
logicalscalar: should principal coordinates be returned? IfFALSE, standard coordinates are returned.- extra_quali
An optional vector of qualitative data for aesthetics mapping.
- extra_quanti
An optional vector of quantitative data for aesthetics mapping. If a single
characterstring is passed, it must be one of "observation", "mass", "sum", "contribution" or "cos2" (seeaugment()).- color
The colors for lines and points (will be mapped to
extra_quantiorextra_quali; if both are set, the latter has priority). Ignored if set toFALSE. IfNULL, the default color scheme will be used.- fill
The background colors for points (will be mapped to
extra_quantiorextra_quali; if both are set, the latter has priority). Ignored if set toFALSE.- symbol
A vector of plotting characters or symbols (will be mapped to
extra_quali). This can either be a single character or an integer code for one of a set of graphics symbols. Ifsymbolis a named a named vector, then the symbols will be associated with their name withinextra_quali. Ignored if set toFALSE.- size
A length-two
numericvector giving range of possible sizes (greater than 0; will be mapped toextra_quanti). Ignored if set toFALSE.- line_type
A specification for the line type (will be mapped to
extra_quali). Ifline_typeis a named a named vector, then the line types will be associated with their name withinextra_quali. Ignored if set toFALSE.- line_width
A specification for the line type and width (will be mapped to
extra_quanti). Ignored if set toFALSE.
Value
A data.frame with the following columns:
xCoordinates along x.
yCoordinates along y.
extra_qualiExtra qualitative variable to be highlighted.
extra_quantiExtra quantitative variable to be highlighted.
labelLabel.
supIs supplementary?
colColor for lines and symbols.
bgBackground color for symbols.
pchSymbols.
cexSymbol sizes.
ltyLine types.
lwdLine widths.
