MakeCIEllipses | R Documentation |
MakeCIEllipses
.
Add Confidence interval ellipses to a CA-like plots.MakeCIEllipses
: Create the Confidence Intervals (CI) ellipses
for plots for the I or J
sets of a CA or STATIS type of analysis
The results of MakeCIEllipses
should be added to BaseMap
created, for example, by the function CreateBaseMap()
MakeCIEllipses( data, axis1 = 1, axis2 = 2, names.of.factors = paste0("Dimension ", c(axis1, axis2)), col = NULL, centers = NULL, line.size = 1, line.type = 1, alpha.ellipse = 0.3, alpha.line = 0.5, p.level = 0.95 )
data |
A cube of bootstraped factor scores
should be an I Items * K factors * nIter array
(e.g. as given by |
axis1 |
(default = 1): the horizontal axis |
axis2 |
(default = 2): the vertical axise |
names.of.factors |
(default is |
col |
(default = |
centers |
(default = |
line.size |
(default = 1) thickness of the line for the ellipses |
line.type |
(default = 1) the type of line for the ellipses |
alpha.ellipse |
(default = .3) alpha value (i.e., transparency) for the ellipses |
alpha.line |
(default = .5): alpha value (i.e., transparency) for the lines |
p.level |
(default = .95), p-value for the CI |
LeGraph.elli the ellipses to be added to the main plot
[e.g., as created by CreateBaseMap()
].
Herve Abdi
## Not run: Fij = rbind(Fi,Fj) # Fi and Fj being factor scores say from ExPosition ABaseMap <- CreateBaseMap(Fij) # Boot_I is a Bootstrap cube for the I-set GraphElli <- MakeCIEllipses(Boot_I) ABaseMap + GraphElli # plot the I Set CI ellipses ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.