Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

drops_p

Drop nodes or edges


Description

Proxies to dynamically drop *multiple* nodes or edges from an already existing graph.

Usage

sg_drop_nodes_p(proxy, data, ids, refresh = TRUE, rate = "once")

sg_drop_edges_p(proxy, data, ids, refresh = TRUE, rate = "once")

Arguments

proxy

An object of class sigmajsProxy as returned by sigmajsProxy.

data

A data.frame of nodes or edges.

ids

Column containing ids to drop from the graph.

refresh

Whether to refresh the graph after node is dropped, required to take effect.

rate

Refresh rate, either once, the graph is refreshed after data.frame of nodes is added or at each iteration (row-wise). Only applies if refresh is set to TRUE.

Value

The proxy object.

Note

Have the parameters from your initial graph match that of the node you add, i.e.: if you pass size in your initial chart, make sure you also have it in your proxy.


sigmajs

Interface to 'Sigma.js' Graph Visualization Library

v0.1.5
MIT + file LICENSE
Authors
John Coene [aut, cre, cph] (<https://orcid.org/0000-0002-6637-4107>)
Initial release
2020-06-17

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.