Description Usage Arguments Value Note See Also Examples
Initialise a graph.
1 2 3 4 5 6 7 |
type |
Renderer type, one of |
width, height |
Dimensions of graph. |
kill |
Whether to kill the graph, set to |
elementId |
Id of elment. |
An object of class htmlwidget
which renders the visualisation on print.
Keep width
at 100%
for a responsive visualisation.
1 2 3 4 5 6 | nodes <- sg_make_nodes()
edges <- sg_make_edges(nodes)
sigmajs("svg") %>%
sg_nodes(nodes, id, label, size, color) %>%
sg_edges(edges, id, source, target)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.