viz_variables | R Documentation |
Plots column/variable principal coordinates.
viz_variables(x, ...)
viz_columns(x, ...)
## S4 method for signature 'MultivariateAnalysis'
viz_columns(
x,
...,
axes = c(1, 2),
active = TRUE,
sup = TRUE,
labels = FALSE,
extra_quali = NULL,
extra_quanti = NULL,
color = NULL,
fill = FALSE,
symbol = FALSE,
size = c(1, 6),
xlim = NULL,
ylim = NULL,
main = NULL,
sub = NULL,
panel.first = NULL,
panel.last = NULL,
legend = list(x = "topleft")
)
## S4 method for signature 'MultivariateBootstrap'
viz_columns(
x,
...,
axes = c(1, 2),
color = FALSE,
fill = FALSE,
symbol = FALSE
)
## S4 method for signature 'PCA'
viz_variables(
x,
...,
axes = c(1, 2),
active = TRUE,
sup = TRUE,
labels = list(filter = "contribution", n = 10),
extra_quali = NULL,
extra_quanti = NULL,
color = NULL,
symbol = NULL,
size = 1,
xlim = NULL,
ylim = NULL,
main = NULL,
sub = NULL,
panel.first = NULL,
panel.last = NULL,
legend = list(x = "topleft")
)
## S4 method for signature 'CA'
viz_variables(
x,
...,
axes = c(1, 2),
active = TRUE,
sup = TRUE,
labels = FALSE,
extra_quali = NULL,
extra_quanti = NULL,
color = NULL,
fill = FALSE,
symbol = FALSE,
size = c(1, 6),
xlim = NULL,
ylim = NULL,
main = NULL,
sub = NULL,
panel.first = NULL,
panel.last = NULL,
legend = list(x = "topleft")
)
## S4 method for signature 'BootstrapPCA'
viz_variables(
x,
...,
axes = c(1, 2),
color = FALSE,
fill = FALSE,
symbol = FALSE
)
x |
A |
... |
Further graphical parameters. |
axes |
A length-two |
active |
A |
sup |
A |
labels |
A |
extra_quali |
An optional vector of qualitative data for aesthetics mapping. |
extra_quanti |
An optional vector of quantitative data for aesthetics
mapping. If a single |
color |
The colors for lines and points (will be mapped to
|
fill |
The background colors for points (will be mapped to
|
symbol |
A vector of plotting characters or symbols (will be mapped to
|
size |
A length-two |
xlim |
A length-two |
ylim |
A length-two |
main |
A |
sub |
A |
panel.first |
An |
panel.last |
An |
legend |
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_wrap
,
wrap
## Load data
data("iris")
## Compute principal components analysis
X <- pca(iris, scale = TRUE)
## Plot individuals
viz_individuals(X, panel.last = graphics::grid())
## Labels of the 10 individuals with highest cos2
viz_individuals(X, labels = list(how = "cos2", n = 10))
## Plot variables
viz_variables(X, panel.last = graphics::grid())
## Graphical parameters
## Continuous values
viz_individuals(X, extra_quanti = iris$Petal.Length, symbol = 16, size = c(1, 2))
viz_individuals(X, extra_quanti = iris$Petal.Length, symbol = 16, size = c(1, 2),
color = grDevices::hcl.colors(12, "RdPu"))
viz_variables(X, extra_quanti = "contribution",
color = grDevices::hcl.colors(12, "BluGrn", rev = TRUE),
size = c(0, 1))
## Discrete values
viz_individuals(X, extra_quali = iris$Species, symbol = 21:23)
viz_individuals(X, extra_quali = iris$Species, symbol = 21:23,
fill = c("#004488", "#DDAA33", "#BB5566"),
color = "black")
viz_variables(X, extra_quali = c("Petal", "Petal", "Sepal", "Sepal"),
color = c("#EE7733", "#0077BB"),
symbol = c(1, 3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.