Description Usage Arguments Value Examples
Generate the JSON code using D3js that draws A network from Adjacency matrix and edges, nodes properties.
1 2 3 4 5 6 7 8 | graph2js(A, innerValues = NULL, innerColors = NULL, innerTexts = NULL,
starplotValues = NULL, starplotColors = NULL, starplotLabels = NULL,
starplotTooltips = NULL, starplotUrlLinks = NULL,
starplotSectorStartedRad = NULL, starplotCircleFillColor = NULL,
starplotCircleFillOpacity = NULL, nodesGlobal = NULL, nodesProp = NULL,
edgesGlobal = NULL, edgesProp = NULL, outputDir = NULL,
filename = NULL, opts = list(), userCssStyles = NULL,
toolsPar = list(), id = getUUID())
|
A |
signed weighted adjacency |
innerValues |
A |
innerColors |
A |
innerTexts |
A |
starplotValues |
A |
starplotColors |
A |
starplotLabels |
A |
starplotTooltips |
A |
starplotUrlLinks |
A |
starplotSectorStartedRad |
A |
starplotCircleFillColor |
A |
starplotCircleFillOpacity |
A |
nodesGlobal |
A |
nodesProp |
A |
edgesGlobal |
A |
edgesProp |
A |
outputDir |
String that corresponds to the path to a folder or
file where js code and dependencies will be generated. If |
filename |
String the name of the result HTML file, a name will be automatically generated if not provided and by default. |
opts |
|
userCssStyles |
String containing user css styles. (See starplot demo) |
toolsPar |
|
id |
|
A list containing information of the generated js code.
1 2 3 4 5 6 7 |
RGraph2js: Convert a Graph into a D3js Script
Version 1.4.0 created on 2016-05-09.
Copyright (c) 2015 Stephane Cano, Sylvain Gubian, Florian Martin, PMP S.A.
Licensed under the GNU GENERAL PUBLIC LICENSE Version 2 <https://www.gnu.org/licenses/gpl-2.0.txt>.
Warning messages:
1: In nl$nodes[i] <- c(nl$nodes[i], list(contrastColors = ndf$name[highlightNodeColorsIdx], :
number of items to replace is not a multiple of replacement length
2: In nl$nodes[i] <- c(nl$nodes[i], list(contrastColors = ndf$name[highlightNodeColorsIdx], :
number of items to replace is not a multiple of replacement length
3: In nl$nodes[i] <- c(nl$nodes[i], list(contrastColors = ndf$name[highlightNodeColorsIdx], :
number of items to replace is not a multiple of replacement length
4: In nl$nodes[i] <- c(nl$nodes[i], list(contrastColors = ndf$name[highlightNodeColorsIdx], :
number of items to replace is not a multiple of replacement length
5: In nl$nodes[i] <- c(nl$nodes[i], list(contrastColors = ndf$name[highlightNodeColorsIdx], :
number of items to replace is not a multiple of replacement length
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.