"plot"(x, axes = c(1, 2), choix=c("ind","var","quanti.sup"), xlim = NULL, ylim = NULL, invisible = c("none","ind","var","ind.sup","quali.sup","quanti.sup"), col.ind = "blue", col.var = "red", col.quali.sup = "darkgreen", col.ind.sup = "darkblue", col.quanti.sup = "blue", label = c("all","none","ind","var","ind.sup","quali.sup","quanti.sup"), title = NULL, habillage = "none", palette = NULL, autoLab = c("auto","yes","no"), new.plot = FALSE, select = NULL, selectMod = NULL, unselect = 0.7,
shadowtext = FALSE, legend = list(bty = "y", x = "topleft"), ...)
autoLab="auto"
, autoLab
is equal to "yes" if there are less than 50 elements and "no" otherwise; if "yes", the labels of the drawn elements are placed in a "good" way (can be time-consuming if many elements), and if "no" the elements are placed quickly but may overlapunselect=1
the transparceny is total and the elements are not drawn, if unselect=0
the elements are drawn as usual but without any label) or may be a color (for example unselect="grey60"
)legend
autoLab = "yes"
is time-consuming if there are many labels that overlap. In this case, you can modify the size of the characters in order to have less overlapping, using for example cex=0.7.
The select
argument can be used in order to select a part of the elements (individuals if you draw the graph of individuals, or variables if you draw the graph of variabless) that are drawn.
For example, you can use:
select = 1:5
and then the elements 1:5 are drawn.
select = c("name1","name5")
and then the elements that have the names name1 and name5 are drawn.
select = "coord 10"
and then the 10 elements that have the highest (squared) coordinates on the 2 chosen dimensions are drawn.
select = "contrib 10"
and then the 10 elements that have the highest contribution on the 2 dimensions of your plot are drawn.
select = "cos2 5"
and then the 5 elements that have the highest cos2 on the 2 dimensions of your plot are drawn.
select = "dist 8"
and then the 8 elements that have the highest distance to the center of gravity are drawn.
The selectMod
argument can be used in order to select the categories that are drawn.
MCA
data (poison)
res.mca = MCA (poison, quali.sup = 3:4, quanti.sup = 1:2, graph=FALSE)
plot(res.mca,invisible=c("var","quali.sup"))
plot(res.mca,invisible="ind")
plot(res.mca,choix="var")
plot(res.mca,invisible=c("ind"),autoLab="yes", selectMod="cos2 10")
plot(res.mca,autoLab="yes", selectMod="cos2 5", select="cos2 5")
Run the code above in your browser using DataLab