Description Usage Arguments Details Value
d3.graph
creates and htmlwidgets using force networks in D3. Inputs must be a data.frame in some specific format.
1 2 3 4 5 | d3.graph(df, nodeMinSize = 6, nodeMaxSize = 12, edgeMinStroke = 0.05,
edgeMaxStroke = 0.25, circleFillOpacity = 1, circleStroke = "black",
circleStrokeWidth = 1, colors = c("#FF475C", "#F65C44", "#EE8442",
"#E5A940", "#DDCB3D", "#BFD53B", "#93CC39", "#69C436", "#43BB34", "#32B344",
"#30AA5F"), width = NULL, height = NULL)
|
df |
A data.frame which contains graph data. Some columns are expected. Every row is an edge.
|
circleFillOpacity |
Opacity of nodes. |
circleStroke |
Color of stroke of nodes. In any format an html can understand. |
circleStrokeWidth |
Size of stroke of nodes. |
colors |
Array of colors in any format an html can understand. |
width |
Width of svg |
height |
Height of svg |
Inputs must be a data.frame, not data.table. It is expected to fix this in the future.
An htmlwidget.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.