viz_wrap | R Documentation |
Plot Envelopes
viz_hull(x, ...)
viz_confidence(x, ...)
viz_tolerance(x, ...)
## S4 method for signature 'MultivariateAnalysis'
viz_tolerance(x, ..., margin = 1, axes = c(1, 2), group = NULL, level = 0.95)
## S4 method for signature 'BootstrapCA'
viz_tolerance(x, ..., margin = 1, axes = c(1, 2), level = 0.95)
## S4 method for signature 'MultivariateAnalysis'
viz_confidence(x, ..., margin = 1, axes = c(1, 2), group = NULL, level = 0.95)
## S4 method for signature 'BootstrapCA'
viz_confidence(x, ..., margin = 1, axes = c(1, 2), level = 0.95)
## S4 method for signature 'MultivariateAnalysis'
viz_hull(x, ..., margin = 1, axes = c(1, 2), group = NULL)
## S4 method for signature 'BootstrapCA'
viz_hull(x, ..., margin = 1, axes = c(1, 2))
x |
An object from which to wrap observations (a |
... |
Further graphical parameters to be passed to
|
margin |
A length-one |
axes |
A length-two |
group |
A vector specifying the group an observation belongs to. |
level |
A |
viz_*()
is called for its side-effects: it results in a graphic being
displayed. Invisibly returns x
.
N. Frerebeau
Other plot methods:
biplot()
,
plot()
,
screeplot()
,
viz_contributions()
,
viz_individuals()
,
viz_variables()
,
wrap
## Load data
data("iris")
## Compute principal components analysis
X <- pca(iris, scale = TRUE, sup_quali = "Species")
## Plot with convex hulls
col <- c("#004488", "#DDAA33", "#BB5566")
viz_rows(X, extra_quali = iris$Species, color = col)
viz_hull(X, group = iris$Species, border = col)
## Plot with tolerance ellipses
col <- c("#004488", "#DDAA33", "#BB5566")
viz_rows(X, extra_quali = iris$Species, color = col)
viz_tolerance(X, group = iris$Species, border = col)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.