to_json | R Documentation |
This is a nice function that takes a graph structure and converts it to a json format for use on the web.
to_json(graph, file, forJS = FALSE)
graph |
An object of type |
file |
A file to write the output to (default missing) |
forJS |
A flag to indicate putting a 'var myjson = ' part the file. |
A textual json representation of the graph
Rodney J. Dyer <rjdyer@vcu.edu>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.