treeNetwork | R Documentation |
Create collapsible tree network diagrams.
treeNetwork(
data,
width = NULL,
height = NULL,
treeType = "tidy",
direction = "right",
linkType = "diagonal",
defaults = NULL,
mouseover = "",
mouseout = "",
inbrowser = FALSE,
...
)
data |
a tree network description in one of numerous forms (see details) |
width |
numeric width for the network graph's frame area in pixels |
height |
height for the network graph's frame area in pixels |
treeType |
character specifying the tree layout type. Options are 'tidy' and 'cluster'. |
direction |
character specifying the direction in which the tree layout shoud grow. One of 'right', 'left', 'down', 'up', or 'radial' |
linkType |
character specifying the link type between points. Options are 'elbow' and 'diagonal'. |
defaults |
named character vector specifying custom default node and link formatting options |
mouseover |
character specifying JavaScript code to be run on mouseover events |
mouseout |
character specifying JavaScript code to be run on mouseout events |
inbrowser |
logical specifying to open the plot in a new browser window |
... |
other arguments that will be passed on to as_treenetdf |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.