sg_drag_nodes

0th

Percentile

Drag nodes

Allow user to drag and drop nodes.

Usage
sg_drag_nodes(sg)

sg_drag_nodes_start_p(proxy)

sg_drag_nodes_kill_p(proxy)

Arguments
sg

An object of class sigmajsas intatiated by sigmajs.

proxy

An object of class sigmajsProxy as returned by sigmajsProxy.

Aliases
  • sg_drag_nodes
  • sg_drag_nodes_start_p
  • sg_drag_nodes_kill_p
Examples
# NOT RUN {
# generate graph
nodes <- sg_make_nodes(20)
edges <- sg_make_edges(nodes, 35)

sigmajs() %>%
  sg_nodes(nodes, id, label, size) %>%
  sg_edges(edges, id, source, target) %>%
  sg_drag_nodes()

# }
# NOT RUN {
# proxies
demo("drag-nodes", package = "sigmajs")
# }
# NOT RUN {
# }
Documentation reproduced from package sigmajs, version 0.1.3, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.