ggscatmat {GGally}R Documentation

ggscatmat - a traditional scatterplot matrix for purely quantitative variables

Description

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

Usage

ggscatmat(data, columns = 1:ncol(data), color = NULL)

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

Author(s)

Mengjia Ni, Di Cook dicook@iastate.edu

Examples

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

[Package GGally version 0.5.0 Index]