cfly_dist {clusterfly} | R Documentation |
Draw a density plot for each continuous variable, facetted across clustering.
cfly_dist(cfly, index, scale="range")
cfly |
clusterfly object |
index |
clustering to use |
scale |
scaling to use |
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
Hadley Wickham <h.wickham@gmail.com>
cfly_dist(o, "kmeans") cfly_dist(o, "kmeans") + scale_y_continuous(limit=c(0, 2))