| viz_individuals | R Documentation | 
Plots row/individual principal coordinates.
viz_individuals(x, ...)
viz_rows(x, ...)
## S4 method for signature 'MultivariateAnalysis'
viz_rows(
  x,
  ...,
  axes = c(1, 2),
  active = TRUE,
  sup = TRUE,
  labels = FALSE,
  extra_quali = NULL,
  extra_quanti = NULL,
  ellipse = NULL,
  hull = 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 'BootstrapCA'
viz_rows(
  x,
  ...,
  axes = c(1, 2),
  color = FALSE,
  fill = FALSE,
  symbol = FALSE,
  legend = NULL
)
## S4 method for signature 'PCA'
viz_individuals(
  x,
  ...,
  axes = c(1, 2),
  active = TRUE,
  sup = TRUE,
  labels = FALSE,
  extra_quali = NULL,
  extra_quanti = NULL,
  ellipse = NULL,
  hull = 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")
)
| 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  | 
| ellipse | A  | 
| hull | A  | 
| 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_variables()
## Load data
data("iris")
## Compute principal components analysis
X <- pca(iris, scale = TRUE, sup_quali = "Species")
## Plot individuals
viz_individuals(X, panel.last = graphics::grid())
## Labels of the 10 individuals with highest cos2
viz_individuals(X, labels = list(filter = "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.