viz_variables {dimensio} | R Documentation |
Visualize Variables Factor Map
Description
Plots column/variable principal coordinates.
Usage
viz_variables(x, ...)
viz_columns(x, ...)
## S4 method for signature 'MultivariateAnalysis'
viz_columns(
x,
...,
axes = c(1, 2),
active = TRUE,
sup = TRUE,
labels = FALSE,
highlight = NULL,
color = NULL,
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, symbol = FALSE)
## S4 method for signature 'PCA'
viz_variables(
x,
...,
axes = c(1, 2),
active = TRUE,
sup = TRUE,
labels = list(how = "contribution", n = 10),
highlight = 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,
highlight = NULL,
color = NULL,
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, symbol = FALSE)
Arguments
x |
|
... |
Currently not used. |
axes |
A length-two |
active |
A |
sup |
A |
labels |
A |
highlight |
A vector specifying the information to be highlighted.
If |
color |
The colors for lines and points (will be mapped to |
symbol |
A vector of plotting characters or symbols. |
size |
A length-two |
xlim |
A length-two |
ylim |
A length-two |
main |
A |
sub |
A |
panel.first |
An |
panel.last |
An |
legend |
A |
Value
viz_*()
is called for its side-effects: it results in a graphic
being displayed. Invisibly returns x
.
Aesthetics
TBD
Author(s)
N. Frerebeau
See Also
Other plot methods:
biplot()
,
screeplot()
,
viz_contributions()
,
viz_individuals()
,
viz_wrap
,
wrap
Examples
## 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, highlight = iris$Petal.Length, symbol = 16, size = c(1, 2))
viz_individuals(X, highlight = iris$Petal.Length, symbol = 16, size = c(1, 2),
color = grDevices::hcl.colors(12, "RdPu"))
viz_variables(X, highlight = "contribution",
color = grDevices::hcl.colors(12, "BluGrn", rev = TRUE),
size = c(0, 1))
## Discrete values
viz_individuals(X, highlight = iris$Species, symbol = 21:23)
viz_individuals(X, highlight = iris$Species, symbol = 21:23,
fill = c("#004488", "#DDAA33", "#BB5566"),
color = "black")
viz_variables(X, highlight = c("Petal", "Petal", "Sepal", "Sepal"),
color = c("#EE7733", "#0077BB"),
symbol = c(1, 3))