Description Usage Arguments Details Value Note Author(s) References See Also Examples

View source: R/sdf_quicksort.R

Reorders a list of class `"sdfdata"`

based on hierarchical clustering in connection with optimal leaf ordering for displaying scagnostics results in scaggrams.

1 | ```
sdf_quicksort(sdfdata)
``` |

`sdfdata` |
A list of class |

The reordering is based on clustering of the variables of `sdfdata$data`

.

`1-cor(sdfdata$data)`

is used as a similarity measure. The linkage method is `average`

. Function `seriate`

from package seriation is used.

A list of class `"sdfdata"`

.

This is a reordering based on similarities of variables not scatterplots. For reordering based on similarities of scatterplots see `sdf_sort`

.

Katrin Grimm

Z. Bar-Joseph, E. D. Demaine, D. K. Gifford, and T. Jaakkola (2001) Fast Optimal Leaf Ordering for Hierarchical Clustering *Bioinformatics* **17**(1) 22–29.

M. Hahsler, K. Hornik und C. Buchta (2008) Getting Things in Order: An Introduction
to the R Package seriation *Journal of Statistical Software* **25**(3) 1–34.

`sdf`

, `scag2sdf`

, `sdf_sort`

, `scaggram`

, `iascaggram`

,

`seriate`

in package seriation

1 2 3 4 5 6 7 8 9 10 11 12 13 | ```
data(Election2005)
# consider only demographic/economic information
election05_ds <- Election2005[,1:40]
## Not run:
scagdf <- sdf(election05_ds)
# new order
scagdf_o <- sdf_quicksort(scagdf)
# compare scaggrams
par(mfrow=c(1,2))
scaggram(scagdf,select=(c(1,5,9)))
scaggram(scagdf_o,select=(c(1,5,9)))
## End(Not run)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.