cfly_dist: Static plot: Variable distribution. Draw a density plot for...

Description Usage Arguments Details Examples

View source: R/ggplot.r

Description

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.

Usage

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

Arguments

cfly

clusterfly object

index

clustering to use

scale

scaling to use

Details

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

Examples

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))
}

clusterfly documentation built on May 2, 2019, 9:12 a.m.