powered by
Scatter matrix using GGally::ggpairs with optional class coloring.
plot_pair(data, cnames, title = NULL, clabel = NULL, colors = NULL)
returns a ggplot2::ggplot graphic
data.frame
column names to include
optional title
optional class label column name
optional vector of colors for classes
data(iris) grf <- plot_pair(iris, cnames = colnames(iris)[1:4], title = "Iris") print(grf)
Run the code above in your browser using DataLab