powered by
Initialise a graph.
sigmajs( type = NULL, width = "100%", kill = FALSE, height = NULL, elementId = NULL )
Renderer type, one of canvas, webgl or svg.
canvas
webgl
svg
Dimensions of graph.
Whether to kill the graph, set to FALSE if using sigmajsProxy, else set to TRUE. Only useful in Shiny.
FALSE
sigmajsProxy
TRUE
Id of elment.
An object of class htmlwidget which renders the visualisation on print.
htmlwidget
sg_kill.
sg_kill
# NOT RUN { nodes <- sg_make_nodes() edges <- sg_make_edges(nodes) sigmajs("svg") %>% sg_nodes(nodes, id, label, size, color) %>% sg_edges(edges, id, source, target) # }
Run the code above in your browser using DataLab