sigmajs

0th

Percentile

Initialise

Initialise a graph.

Usage
sigmajs(type = "canvas", width = "100%", kill = FALSE,
  height = NULL, elementId = NULL)
Arguments
type

Renderer type, one of canvas, webgl or svg.

width, height

Dimensions of graph.

kill

Whether to kill the graph, set to FALSE if using sigmajsProxy, else set to TRUE. Only useful in Shiny.

elementId

Id of elment.

Note

Keep width at 100% for a responsive visualisation.

See Also

sg_kill.

Aliases
  • sigmajs
Examples
# 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) 

# }
Documentation reproduced from package sigmajs, version 0.1.1, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.