cfly_dist {clusterfly}R Documentation

Static plot: Variable distribution

Description

Draw a density plot for each continuous variable, facetted across clustering.

Usage

cfly_dist(cfly, index, scale="range")

Arguments

cfly clusterfly object
index clustering to use
scale scaling to use

Details

This allows you to quickly visualise how the cluster vary in a univariate manner. Currently, it is a bit of a hack, because ggplot does not support plots with different scales, so the variables are manually rescaled prior to plotting.

This plot is inspired by Gaguin http://www.rosuda.org/gaguin

Author(s)

Hadley Wickham <h.wickham@gmail.com>

Examples

cfly_dist(o, "kmeans")
cfly_dist(o, "kmeans") + scale_y_continuous(limit=c(0, 2))

[Package clusterfly version 0.2.2 Index]