sigmajs {sigmajs} | R Documentation |
Initialise
Description
Initialise a graph.
Usage
sigmajs(
type = NULL,
width = "100%",
kill = FALSE,
height = NULL,
elementId = NULL
)
Arguments
type |
Renderer type, one of |
width , height |
Dimensions of graph. |
kill |
Whether to kill the graph, set to |
elementId |
Id of elment. |
Value
An object of class htmlwidget
which renders the visualisation on print.
Note
Keep width
at 100%
for a responsive visualisation.
See Also
Examples
nodes <- sg_make_nodes()
edges <- sg_make_edges(nodes)
sigmajs("svg") %>%
sg_nodes(nodes, id, label, size, color) %>%
sg_edges(edges, id, source, target)
[Package sigmajs version 0.1.5 Index]