viz_ellipses {dimensio} | R Documentation |
Ellipses
Description
Plots ellipses.
Usage
viz_ellipses(x, y, ...)
## S4 method for signature 'numeric,numeric'
viz_ellipses(
x,
y,
...,
group = NULL,
type = c("tolerance", "confidence"),
level = 0.95,
color = NULL,
fill = FALSE,
symbol = FALSE
)
## S4 method for signature 'MultivariateAnalysis,missing'
viz_ellipses(
x,
...,
group = NULL,
type = c("tolerance", "confidence"),
level = 0.95,
color = NULL,
fill = FALSE,
symbol = FALSE
)
## S4 method for signature 'PCOA,missing'
viz_ellipses(
x,
...,
group = NULL,
type = c("tolerance", "confidence"),
level = 0.95,
color = NULL,
fill = FALSE,
symbol = FALSE
)
Arguments
x , y |
A |
... |
Further graphical parameters to be passed to
|
group |
A vector specifying the group an observation belongs to. |
type |
A |
level |
A |
color |
The colors for borders (will be mapped to |
fill |
The background colors (will be mapped to |
symbol |
A vector of symbols (will be mapped to |
Value
viz_ellipses()
is called for its side-effects: it results in a graphic
being displayed. Invisibly returns x
.
Author(s)
N. Frerebeau
See Also
Other envelopes:
viz_confidence()
,
viz_hull()
,
viz_tolerance()
Examples
## Load data
data("iris")
## Compute principal components analysis
X <- pca(iris, scale = TRUE, sup_quali = "Species")
## Plot with tolerance ellipses
col <- c("#004488", "#DDAA33", "#BB5566")
viz_rows(X, extra_quali = iris$Species, color = col)
viz_ellipses(
x = X,
type = "tolerance",
level = c(0.68, 0.95),
group = iris$Species,
color = col
)