lowertriangle: lowertriangle - rearrange dataset as the preparation of...

Description Usage Arguments Author(s) Examples

View source: R/ggscatmat.R

Description

function for making the melted dataset used to plot the lowertriangle scatterplots.

Usage

1
lowertriangle(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 choose a factor variable to be grouped with. Defaults to (NULL)

Author(s)

Mengjia Ni, Di Cook [email protected]

Examples

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

Example output

  xvalue yvalue xslot yslot  xlab  ylab
1    191     NA     1     1 tars1 tars1
2    185     NA     1     1 tars1 tars1
3    200     NA     1     1 tars1 tars1
4    173     NA     1     1 tars1 tars1
5    171     NA     1     1 tars1 tars1
6    160     NA     1     1 tars1 tars1
  xvalue yvalue xslot yslot  xlab  ylab
1    191     NA     1     1 tars1 tars1
2    185     NA     1     1 tars1 tars1
3    200     NA     1     1 tars1 tars1
4    173     NA     1     1 tars1 tars1
5    171     NA     1     1 tars1 tars1
6    160     NA     1     1 tars1 tars1
  xvalue yvalue xslot yslot  xlab  ylab colorcolumn
1    191     NA     1     1 tars1 tars1    Concinna
2    185     NA     1     1 tars1 tars1    Concinna
3    200     NA     1     1 tars1 tars1    Concinna
4    173     NA     1     1 tars1 tars1    Concinna
5    171     NA     1     1 tars1 tars1    Concinna
6    160     NA     1     1 tars1 tars1    Concinna

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