d3_table | R Documentation |
Converts Table to 'd3' Nodes and Links
d3_table(tB = NULL, vars = NULL, agg = "Freq")
tB |
|
vars |
|
agg |
|
list
of two data.frames
- one for nodes and
one for links of the network. This structure is helpful
when working with networkD3
and visNetwork
.
library(d3r)
d3_table(Titanic, c("Class","Sex"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.