graphInd {FactoInvestigate} | R Documentation |
Individuals factor map
Description
Realise the optimised individuals graph
Usage
graphInd(res, file = "", dim = 1:2, Iselec = "contrib", Icoef = 1,
figure.title = "Figure", graph = TRUE, cex = 0.7,
codeGraphInd = NULL, options=NULL)
Arguments
res |
an object of class PCA or MCA. |
file |
the file path where to write the description in Rmarkdown language. If not specified, the description is written in the console. |
dim |
a 2 dimensional numerical vector giving the factorial dimensions to use for the representation (by default the first plane). |
Iselec |
the individuals to select ; see the details section. |
Icoef |
a numerical coefficient to adjust the individuals selection rule ; see the details section. |
figure.title |
the text label to add before graph title. |
graph |
a boolean : if |
cex |
an optional argument for the generic plot functions, used to adjust the size of the elements plotted. |
codeGraphInd |
a character string corresponding to the code to use for the individuals graph. |
options |
a character string that gives the output options fir the figures.
If NULL, |
Details
The Iselec
argument is used in order to select a part of the individuals that are drawn and described. For example, you can use either :
- Iselec = 1:5
and then the individuals numbered 1 to 5 are drawn.
- Iselec = c("name1","name5")
then the individuals named name1
and name5
are drawn.
- Iselec = "contrib 10"
then the 10 active or illustrative individuals that have the highest contribution on the 2 dimensions of the plane are drawn.
- Iselec = "contrib"
then the optimal number of active or illustrative individuals (respectively the variables, the rows or the columns) that have the highest contribution on the 2 dimensions of the plane are drawn.
- Iselec = "cos2 5"
then the 5 active or illustrative individuals that have the highest cos2 on the 2 dimensions of the plane are drawn.
- Iselec = "cos2 0.8"
then the active or illustrative individuals that have a cos2
higher to 0.8
on the plane are drawn.
- Iselec = "cos2"
then the optimal number of active or illustrative individuals that have the highest cos2 on the 2 dimensions of the plane are drawn.
The Icoef
argument is used in order to adjust the selection of the individuals when based on Iselec = "contrib"
or Iselec = "cos2"
. For example :
- if Icoef = 2
, the threshold is 2 times higher, and thus 2 times more restrictive.
- if Icoef = 0.5
, the threshold is 2 times lower, and thus 2 times less restrictive.
Author(s)
Simon Thuleau and Francois Husson
See Also
factoGraph
, graphHab
, graphCA
, graphVar
, graphSup
Examples
## Not run:
require(FactoMineR)
data(decathlon)
res.pca = PCA(decathlon, quanti.sup = c(11:12), quali.sup = c(13), graph = FALSE)
graphInd(res.pca)
## End(Not run)