Learn R Programming

WVPlots (version 1.1.1)

PairPlot: Build a pair plot

Description

Build a pair plot

Usage

PairPlot(d, meas_vars, title, ..., group_var = NULL, palette = "Dark2")

Arguments

d

data frame

meas_vars

the variables to be plotted

title

plot title

...

not used, forces later arguments to bind by name

group_var

variable for grouping and colorcoding

palette

name of a brewer palette (NULL for ggplot2 default coloring)

Value

a ggplot2 pair plot

Examples

Run this code
# NOT RUN {
PairPlot(iris, colnames(iris)[1:4], "Example plot", group_var = "Species")

# no color-coding
PairPlot(iris, colnames(iris)[1:4], "Example plot")

# }

Run the code above in your browser using DataLab