View source: R/graphics_plot_pair.R
| plot_pair | R Documentation |
Scatter matrix using GGally::ggpairs with optional class coloring.
plot_pair(data, cnames, title = NULL, clabel = NULL, colors = NULL)
data |
data.frame |
cnames |
column names to include |
title |
optional title |
clabel |
optional class label column name |
colors |
optional vector of colors for classes |
returns a ggplot2::ggplot graphic
data(iris)
grf <- plot_pair(iris, cnames = colnames(iris)[1:4], title = "Iris")
print(grf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.