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 |
message |
the message of the widget |
width |
the width of the widget |
height |
the height of the widget |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.