| viz_contributions | R Documentation |
Plots contributions histogram and cos^2 scatterplot.
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 = 1,
active = TRUE,
sup = TRUE,
sort = TRUE,
decreasing = TRUE,
limit = 10,
horiz = FALSE,
col = "grey90",
border = "grey10"
)
x |
A |
... |
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 |
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).
viz_contributions() and viz_cos2() are called for their side-effects:
they result in a graphic being displayed. Invisibly return x.
N. Frerebeau
Other plot methods:
biplot(),
plot(),
screeplot(),
viz_individuals(),
viz_variables()
## Load data
data("iris")
## Compute principal components analysis
X <- pca(iris, scale = TRUE, sup_quali = "Species")
## Get row contributions
head(get_contributions(X, margin = 1))
## Plot contributions
viz_contributions(X, axes = 1)
## Plot cos2
viz_cos2(X, axes = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.