This function creates a force-directed graph using htmlwidgets, which can be rendered in R Markdown documents and shiny applications. The rendering is conducted using a variant of the Sigma which is a JavaScript library dedicated to graph drawing. The force-graph layout algorithm is ForceAtlas2 [http://www.plosone.org/article/info Mathieu Jacomy [https://github.com/jacomyma], Guillaume Plique [https://github.com/Yomguithereal] and Sébastien Heymann. [https://github.com/sheymann].
1 2 3 4 5 6 7 8 9 10 |
nodes |
the node information of force-directed graph |
links |
the link information of force-directed graph |
nMappings |
indicates which attributes are used for node rendering. The available render options are "id", "size", "color", "scheme", "label", "label_id" and "label_term". |
lMappings |
indicates which attributes are used for link rendering. The available render options are "source", "target" and "weight". |
options |
A list of internal meta configurations provided for JavaScript library. Users
are highly recommended to modify the detailed rendering options in the shiny report by
|
width |
the width of the widget |
height |
the height of the widget |
seriesData |
A list of time points in time series analysis. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.