plot_pair: Plot scatter matrix

View source: R/graphics_plot_pair.R

plot_pairR Documentation

Plot scatter matrix

Description

Scatter matrix using GGally::ggpairs with optional class coloring.

Usage

plot_pair(data, cnames, title = NULL, clabel = NULL, colors = NULL)

Arguments

data

data.frame

cnames

column names to include

title

optional title

clabel

optional class label column name

colors

optional vector of colors for classes

Value

returns a ggplot2::ggplot graphic

Examples

data(iris)
grf <- plot_pair(iris, cnames = colnames(iris)[1:4], title = "Iris")
print(grf)

daltoolbox documentation built on Feb. 10, 2026, 9:06 a.m.