Prepare Data for Plotting
Arguments
- x
A
MultivariateAnalysis
object.- margin
A length-one
numeric
vector giving the subscript which the data will be returned:1
indicates individuals/rows (the default),2
indicates variables/columns.- ...
Further graphical parameters.
- axes
A length-two
numeric
vector giving the dimensions to be plotted.- active
A
logical
scalar: should the active observations be plotted?- sup
A
logical
scalar: should the supplementary observations be plotted?- principal
A
logical
scalar: 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
character
string 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_quanti
orextra_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_quanti
orextra_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. Ifsymbol
is a named a named vector, then the symbols will be associated with their name withinextra_quali
. Ignored if set toFALSE
.- size
A length-two
numeric
vector 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_type
is 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:
x
Coordinates along x.
y
Coordinates along y.
extra_quali
Extra qualitative variable to be highlighted.
extra_quanti
Extra quantitative variable to be highlighted.
label
Label.
sup
Is supplementary?
col
Color for lines and symbols.
bg
Background color for symbols.
pch
Symbols.
cex
Symbol sizes.
lty
Line types.
lwd
Line widths.