Examples for 'GGally::uppertriangle'


Rearrange dataset as the preparation of 'ggscatmat' function

Aliases: uppertriangle

Keywords:

### ** Examples

data(flea)
head(uppertriangle(flea, columns=2:4))
   xlab  ylab    r xvalue yvalue
1 tars2 tars1 0.03  126.5  182.0
2  head tars1 -0.1   50.5  182.0
3  head tars2 0.67   50.5  126.5
head(uppertriangle(flea))
   xlab  ylab     r xvalue yvalue
1 tars2 tars1  0.03  126.5  182.0
2  head tars1  -0.1   50.5  182.0
3  head tars2  0.67   50.5  126.5
4 aede1 tars1 -0.33  136.5  182.0
5 aede1 tars2  0.56  136.5  126.5
6 aede1  head  0.59  136.5   50.5
head(uppertriangle(flea, color="species"))
   ylab  xlab colorcolumn    r xvalue yvalue
1 tars1 tars2    Concinna 0.77  126.5    152
2 tars1 tars2    Heikert. 0.64  126.5    182
3 tars1 tars2   Heptapot. 0.56  126.5    212
4 tars1  head    Concinna 0.68   50.5    152
5 tars1  head    Heikert. 0.65   50.5    182
6 tars1  head   Heptapot. 0.77   50.5    212

[Package GGally version 2.1.2 Index]