spiral_dendrogram: Draw dendrogram

Description Usage Arguments Details Value Examples

View source: R/dendrogram.R

Description

Draw dendrogram

Usage

1
spiral_dendrogram(dend, gp = gpar(), track_index = current_track_index())

Arguments

dend

A stats::dendrogram object.

gp

Graphics parameters of the dendrogram edges.

track_index

Index of the track.

Details

Note the dendrogram edges can be rendered with the dendextend package.

Value

Height of the dendrogram.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
k = 500
dend = as.dendrogram(hclust(dist(runif(k))))
spiral_initialize(xlim = c(0, k), start = 360, end = 360*3)
spiral_track(height = 0.8, background_gp = gpar(fill = "#EEEEEE", col = NA))


require(dendextend)
dend = color_branches(dend, k = 4)
spiral_initialize(xlim = c(0, k), start = 360, end = 360*3)
spiral_track(height = 0.8, background_gp = gpar(fill = "#EEEEEE", col = NA))

spiralize documentation built on Feb. 6, 2022, 1:06 a.m.