component_plot {ICSClust} | R Documentation |
Scatterplot Matrix with densities on the diagonal
Description
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.
Usage
component_plot(
object,
select = TRUE,
clusters = NULL,
text_size_factor = 8/6.5,
colors = NULL
)
Arguments
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. |
Value
An object of class "ggmatrix"
(see
GGally::ggpairs()
).
Author(s)
Andreas Alfons and Aurore Archimbaud
Examples
X <- iris[,1:4]
component_plot(X)
out <- ICS(X)
component_plot(out, select = c(1,4))
[Package ICSClust version 0.1.0 Index]