ggraph (version 1.0.2)

layout_dendrogram_auto: Dendrogram layout for layout_dendrogram

Description

This layout positions the branches and leafs according to the values given in the height attribute of the dendrogram object. If repel = FALSE the layout is equivalent to the one shown with the plot function on dendrogram objects.

Usage

layout_dendrogram_auto(graph, circular, ...)

layout_dendrogram_dendrogram(graph, circular = FALSE, offset = pi/2, repel = FALSE, ratio = 1)

Arguments

graph

A dendrogram object.

circular

Logical. Should the layout be transformed to a circular representation. Defaults to FALSE.

...

Parameters passed on to layout_dendrogram_dendrogram

offset

If circular = TRUE, where should it begin. Defaults to pi/2 which is equivalent to 12 o'clock.

repel

Logical. Should leafs be distanced from their neighbors as a function of their distance in the tree. Defaults to FALSE.

ratio

If repel = TRUE, the strength of the repelation. Defaults to 1.

Value

A data.frame with the columns x, y, circular, label, members, leaf as well as any value stored in the nodePar attribute of the dendrogram.