Learn R Programming

networkD3 (version 0.4.1)

as_treenetdf.igraph: Convert igraph tree to treenetdf

Description

Convert igraph tree to treenetdf

Usage

# S3 method for igraph
as_treenetdf(data, root = "root", ...)

Arguments

data

a tree network description in one of numerous forms (see details).

root

character specifying the string that should be used to name the root node

...

arguments to pass to methods.