r2d3 (version 1.0)

jsonHC: Hierachical Cluster output to json

Description

Creates a json file from a hierachical clustering output. This json will work with D3 Dendro

Usage

jsonHC(hc)

Arguments

hc
A hieracichal cluster (hclust) output object

Examples

Run this code
hc <- hclust(dist(USArrests), "ave")
plot(hc)
JSON<-jsonHC(hc)

Run the code above in your browser using DataLab