layout_dendrogram_dendrogram: Dendrogram layout for layout_dendrogram

Description Usage Arguments Value Note

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

1
2
3
4
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.

Note

This function is not intended to be used directly but by setting layout = 'dendrogram' in create_layout


YTLogos/ggraph documentation built on May 6, 2019, 4:37 p.m.