Description Usage Arguments Details Examples
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.
1 |
cfly |
clusterfly object |
index |
clustering to use |
scale |
scaling to use |
This plot is inspired by Gaguin http://www.rosuda.org/gaguin.
1 2 3 4 5 | if (require("ggplot2")) {
o <- olive_example()
cfly_dist(o, "kmeans")
cfly_dist(o, "kmeans") + scale_y_continuous(limit=c(0, 2))
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.