viz_contributions {dimensio} | R Documentation |
Visualize Contributions and cos2
Description
Plots contributions histogram and cos^2
scatterplot.
Usage
viz_contributions(x, ...)
viz_cos2(x, ...)
## S4 method for signature 'MultivariateAnalysis'
viz_contributions(
x,
...,
margin = 2,
axes = 1,
sort = TRUE,
decreasing = TRUE,
limit = 10,
horiz = FALSE,
col = "grey90",
border = "grey10"
)
## S4 method for signature 'MultivariateAnalysis'
viz_cos2(
x,
...,
margin = 2,
axes = c(1, 2),
active = TRUE,
sup = TRUE,
sort = TRUE,
decreasing = TRUE,
limit = 10,
horiz = FALSE,
col = "grey90",
border = "grey10"
)
Arguments
x |
|
... |
Extra parameters to be passed to |
margin |
A length-one |
axes |
A |
sort |
A |
decreasing |
A |
limit |
An |
horiz |
A |
col , border |
A |
active |
A |
sup |
A |
Details
The red dashed line indicates the expected average contribution (variables with a contribution larger than this cutoff can be considered as important in contributing to the component).
Value
viz_contributions()
and viz_cos2()
are called for their side-effects:
they result in a graphic being displayed. Invisibly return x
.
Author(s)
N. Frerebeau
See Also
Other plot methods:
biplot()
,
screeplot()
,
viz_individuals()
,
viz_variables()
,
viz_wrap
,
wrap
Examples
## Load data
data("iris")
## Compute principal components analysis
X <- pca(iris, scale = TRUE)
## Get row contributions
head(get_contributions(X, margin = 1))
## Plot contributions
viz_contributions(X, axes = 1)
## Plot cos2
viz_cos2(X)