clusterfly (version 0.4)

clusterfly: Creates a convenient data structure for dealing with a dataset and a number of alternative clusterings.

Description

Once you have created a clusterfly object, you can add clusterings to it with cfly_cluster, and visualise then in GGobi with cfly_show and cfly_animate. Static graphics are also available: cfly_pcp will produce a parallel coordinates plot, cfly_dist will show the distribution of each variable in each cluster, and cfly_fluct compares two clusterings with a fluctuation diagram.

Usage

clusterfly(df, extra = NULL, rescale = TRUE)

Arguments

df
data frame to be clustered
extra
extra variables to be included in output, but not clustered
rescale
rescale, if true each variable will be scaled to have mean 0 and variance 1.

Details

If you want to standardise the cluster labelling to one group, look at clarify and cfly_clarify

See Also

vignette("introduction")

Examples

Run this code
ol <- olive_example()

if (interactive()) {
ggobi(ol)
cfly_show(ol, "k4-1")
cfly_animate(ol, max = 5)
close(ol)
}

Run the code above in your browser using DataCamp Workspace