Learn R Programming

daltoolbox (version 1.3.717)

plot_pair: Plot scatter matrix

Description

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

Usage

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

Value

returns a ggplot2::ggplot graphic

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

Examples

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

Run the code above in your browser using DataLab