component_plot: Scatterplot Matrix with densities on the diagonal

View source: R/plots.R

component_plotR 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 ICS class object.

select

a vector of indexes of variables to plot. If NULL or FALSE, all variables are selected. If TRUE only the first three and last three are considered.

clusters

a vector indicating the clusters of the data to color the plot. By default NULL.

text_size_factor

a numeric factor for controlling the axis.text and strip.text.

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))


ICSClust documentation built on Sept. 21, 2023, 5:07 p.m.