Rdocumentation
powered by
Learn R Programming
RGraph2js (version 1.0.0)
Convert a Graph into a D3js Script
Description
Generator of web pages which display interactive network/graph visualizations with D3js, jQuery and Raphael.
Copy Link
Link to current version
Version
Version
1.0.0
Version
1.0.0
License
GPL-2
Maintainer
Sylvain Gubian
Last Published
February 15th, 2017
Functions in RGraph2js (1.0.0)
Search all functions
getUUID
Function wich generates a UUID version 4
graph2json
Generates JSON string correponding the the graph description
getJSCode
Generate javascript code based on general options and network data
generateOptionsJSCode
Generate javascript code based on general options, options for containers and network data
getDefaultOptions
Generate a list containing parameters for the D3js component's options with default values
getAdjMat
Get a RGraph2js compatible adjacency matrix from the provided R object.
getEdgesDataFrame
Create Edges
data.frame
from Adjacency matrix and properties
getHTMLStyleCode
Generate a HTML style code for component based on template
getHTMLContainerCode
Generate a HTML table node code for component based on template
getNodesDataFrame
Create Nodes
data.frame
from Adjacency matrix and properties for specific nodes
getDefaultToolParameters
Function wich generates a list containing parameters for Tools in the D3js component with default values
graph2js
Generate the JSON code using D3js that draws A network from Adjacency matrix and edges, nodes properties.