plot_dendrogram.igraphHRG {igraph}R Documentation

HRG dendrogram plot

Description

Plot a hierarchical random graph as a dendrogram.

Usage

## S3 method for class 'igraphHRG'
plot_dendrogram(x, mode = igraph_opt("dend.plot.type"), ...)

Arguments

x

An igraphHRG, a hierarchical random graph, as returned by the fit_hrg function.

mode

Which dendrogram plotting function to use. See details below.

...

Additional arguments to supply to the dendrogram plotting function.

Details

plot_dendrogram supports three different plotting functions, selected via the mode argument. By default the plotting function is taken from the dend.plot.type igraph option, and it has for possible values:

The different plotting functions take different sets of arguments. When using plot.phylo (mode="phylo"), we have the following syntax:

    plot_dendrogram(x, mode="phylo", colbar = rainbow(11, start=0.7,
            end=0.1), edge.color = NULL, use.edge.length = FALSE, \dots)

The extra arguments not documented above:

The syntax for plot.hclust (mode="hclust"):

    plot_dendrogram(x, mode="hclust", rect = 0, colbar = rainbow(rect),
            hang = 0.01, ann = FALSE, main = "", sub = "", xlab = "",
            ylab = "", \dots)

The extra arguments not documented above:

The syntax for plot.dendrogram (mode="dendrogram"):

    plot_dendrogram(x, \dots)

The extra arguments are simply passed to as.dendrogram.

Value

Returns whatever the return value was from the plotting function, plot.phylo, plot.dendrogram or plot.hclust.

Author(s)

Gabor Csardi csardi.gabor@gmail.com

Examples


g <- make_full_graph(5) + make_full_graph(5)
hrg <- fit_hrg(g)
plot_dendrogram(hrg)


[Package igraph version 1.3.5 Index]