component_plot | R Documentation |
Produces a gg-scatterplot matrix of the variables of a given dataframe or an invariant coordinate system obtained via an ICS transformation with densities on the diagonal for each cluster.
component_plot(
object,
select = TRUE,
clusters = NULL,
text_size_factor = 8/6.5,
colors = NULL
)
object |
a dataframe or |
select |
a vector of indexes of variables to plot. If |
clusters |
a vector indicating the clusters of the data to color the
plot. By default |
text_size_factor |
a numeric factor for controlling the |
colors |
a vector of colors to use. One color for each cluster. |
An object of class "ggmatrix"
(see
GGally::ggpairs()
).
Andreas Alfons and Aurore Archimbaud
X <- iris[,1:4]
component_plot(X)
out <- ICS(X)
component_plot(out, select = c(1,4))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.