draw_graphD3 | R Documentation |
Plot graph using networkD3
draw_graphD3(
net,
groups = NULL,
color_scale = NULL,
edge_col = NULL,
node_col = NULL,
node_alpha = 0.5,
edge_alpha = 0.33,
zoom = TRUE,
legend = FALSE,
palette = rtemis_palette,
theme = choose_theme(),
...
)
net |
igraph network. |
groups |
Vector, length n nodes indicating group/cluster/community membership of nodes in |
color_scale |
D3 colorscale (e.g. |
edge_col |
Color for edges. |
node_col |
Color for nodes. |
node_alpha |
Float [0, 1]: Node opacity. |
edge_alpha |
Float [0, 1]: Edge opacity. |
zoom |
Logical: If TRUE, graph is zoomable. |
legend |
Logical: If TRUE, display legend for groups. |
palette |
Vector of colors, or Character defining a builtin palette - get options with |
theme |
Theme object. |
... |
Additional arguments to pass to |
forceNetwork
object.
EDG
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.