raise.dendrogram: Raise the height of a dendrogram tree

Description Usage Arguments Value Examples

View source: R/unbranch.R

Description

Raise the height of nodes in a dendrogram tree.

Usage

1
raise.dendrogram(dend, heiget_to_add, ...)

Arguments

dend

dendrogram object

heiget_to_add

how much height to add to all the branches (not leaves) in the dendrogram

...

passed on (not used)

Value

A raised dendrogram

Examples

1
2
3
4
5
6
hc <- hclust(dist(USArrests[2:9,]), "com")
dend <- as.dendrogram(hc)

par(mfrow = c(1,2))
plot(dend, main = "original tree")
plot(raise.dendrogram(dend , 100), main = "Raised tree")

Example output

---------------------
Welcome to dendextend version 1.5.2
Type citation('dendextend') for how to cite the package.

Type browseVignettes(package = 'dendextend') for the package vignette.
The github page is: https://github.com/talgalili/dendextend/

Suggestions and bug-reports can be submitted at: https://github.com/talgalili/dendextend/issues
Or contact: <tal.galili@gmail.com>

	To suppress this message use:  suppressPackageStartupMessages(library(dendextend))
---------------------


Attaching package: 'dendextend'

The following object is masked from 'package:stats':

    cutree

dendextend documentation built on Feb. 11, 2018, 3:12 p.m.