ggscatmat: ggscatmat - a traditional scatterplot matrix for purely...

Description Usage Arguments Author(s) Examples

View source: R/ggscatmat.R

Description

This function makes a scatterplot matrix for quantitative variables with density plots on the diagonal and correlation printed in the upper triangle.

Usage

1
2
ggscatmat(data, columns = 1:ncol(data), color = NULL, alpha = 1,
  corMethod = "pearson")

Arguments

data

a data matrix. Should contain numerical (continuous) data.

columns

an option to choose the column to be used in the raw dataset. Defaults to 1:ncol(data).

color

an option to group the dataset by the factor variable and color them by different colors. Defaults to NULL.

alpha

an option to set the transparency in scatterplots for large data. Defaults to 1.

corMethod

method argument supplied to cor

Author(s)

Mengjia Ni, Di Cook [email protected]

Examples

1
2
3
data(flea)
ggscatmat(flea, columns = 2:4)
ggscatmat(flea, columns = 2:4, color = "species")

Example output



GGally documentation built on May 18, 2018, 1:08 a.m.