## S3 method for class 'mjca':
plot(x, dim = c(1,2), map = "symmetric", centroids = FALSE, what = c("all", "all"),
mass = c(FALSE, FALSE), contrib = c("none", "none"),
col = c("#000000", "#FF0000"), pch = c(16, 1, 17, 24),
labels = c(2, 2), arrows = c(FALSE, FALSE), ...)
mjca
"symmetric"
(default)
"rowprincipal"
"colprincipal"
"symbiplot"
"rowgab"
"colgab"
"rowgreen"
"all"
(all available points, default)
"active"
(only active points are displaye"none"
(contributions are not indicated in the plot).
"absolute"
(abs"#FF0000"
), rgb (e.g. rgb(1,0,0)
) values or by R-name (e.g. pchlist
for a list of symbols.0
), labels only (1
) or both symbols and labels (2
). Setting labels
to 2
results in the symbols being plotted at the cplot.mjca
makes a two-dimensional map of the object created by mjca
with respect to two selected dimensions. By default the scaling option of the map is "symmetric"
, that is the so-called symmetric map. In this map both the row and column points are scaled to have inertias (weighted variances) equal to the principal inertia (eigenvalue) along the principal axes, that is both rows and columns are in pricipal coordinates. Other options are as follows:
"rowprincipal"
or "colprincipal"
- these are the so-called asymmetric maps, with either rows in principal coordinates and columns in standard coordinates, or vice versa (also known as row-metric-preserving or column-metric-preserving respectively). These maps are biplots;}
"symbiplot"
- this scales both rows and columns to have variances equal to the singular values (square roots of eigenvalues), which gives a symmetric biplot but does not preserve row or column metrics;}
"rowgab"
or "colgab"
- these are asymmetric maps (see above) with rows (respectively, columns) in principal coordinates and columns (respectively, rows) in standard coordinates multiplied by the mass of the corresponding point. These are also biplots and were proposed by Gabriel & Odoroff (1990);}
"rowgreen"
or "colgreen"
- these are similar to "rowgab"
and "colgab"
except that the points in standard coordinates are multiplied by the square root of the corresponding masses, giving reconstructions of the standardized residuals.}
This function has options for sizing and shading the points. If the option mass
is TRUE
for a set of points, the size of the point symbol is proportional to the relative frequency (mass) of each point. If the option contrib
is "absolute"
or "relative"
for a set of points, the colour intensity of the point symbol is proportional to the absolute contribution of the points to the planar display or, respectively, the quality of representation of the points in the display.mjca
, summary.mjca
, print.mjca
, pchlist
library(MASS)
data(farms)
# A two-dimensional map with standard settings
plot(mjca(farms))
# Mass for columns represented by the size of the point symbols
plot(mjca(farms), mass = c(FALSE, TRUE))
Run the code above in your browser using DataLab