View source: R/MakeTIEllipses.R
MakeToleranceIntervals | R Documentation |
MakeToleranceIntervals
.
Add Tolerance interval hulls or
ellipses to factor score plots
(e.g., PCA, CA).MakeToleranceIntervals
:
Creates the ToleranceIntervals (CI) convex hulls or ellipses
for plots for the I or J sets of a CA, PCA, MFA,
STATIS, etc. type of analysis
The results (Hulls or Ellipses)
of MakeToleranceIntervals
should be added
to the BaseMap
created (for example) by the function
CreateBaseMap()
.
MakeToleranceIntervals( data, design, 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.66, type = "hull" )
data |
A set of I*L factor scores
(as obtained, for example, from |
design |
an I by 1 factor giving the group membership of the I observations. |
axis1 |
(default = 1): the horizontal axis. |
axis2 |
(default = 2): the vertical axis. |
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 (transparency) for the ellipses. |
alpha.line |
(default = .5): alpha value (transparency) for the lines. |
p.level |
(default = .66) "p-value for the TI |
type |
(Default = |
LeGraph.elli a graph with convex hulls
or ellipses to be added to the base map as created,
for example,
by the function CreateBaseMap()
.
Herve Abdi
## Not run: Fij = rbind(Fi,Fj) # Fi and Fj being factor scores say from ExPosition ABaseMap <- CreateBaseMap(Fij) # Here design.matrix is design matrix describing K groups in Fi GraphHull <- MakeToleranceIntervals(Fi,design.matrix) print(ABaseMap + GraphHull) # plot the K TI ellipses ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.