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())matrix or an instance of the class
graphAM, graphBAM, graphNEL or clusterGraph
from the graph packagematrix of inner node values to display Barplot
or other component. In a row, numerical values for a node.matrix of colors for coloring the inner node
barplot or component . In a row, colors values for a node.matrix of labels for each bar in inner barplots.
In a row, labels values for a node.matrix of [0,1] values for starpot sectors
sizematrix of hex RGB colors for sectors colorsmatrix of labels identifying the sectorsmatrix of text or even html content for
the sectors tooltipsmatrix of text for the sectors url linksmatrix with a single column of
[0,2PI] values for the sector start in radiansmatrix of hex RGB colors for the
circle backgroundmatrix of [0.0,1.0] values for
the background opacitylist of global nodes properties.data.frame object containing properties for
specifics nodes width, shape (in 'rect', 'circle', 'lozenge', 'triangle'),
link, tooltip, highlight.X (X from 0 to N for animation) columnslist of global edges properties.data.frame object containing properties for
specific edges from, to, width, type, link, color columnsNULL is
provided, javascript code is returned in the returned list by the
function with the slots:'jsIncludes' A character string containing JS code for including the necessary JS files
'styling' A character string which contains the CSS code for the GraphRenderer component
'js' A character string containing the JavaScript code for the rendering of the data
'html' A character string containing the HTML code for the rendering of the component
list of options of the GraphRenderer component
(See getDefaultOptions function available options)list of options for tools attached to GraphRenderer
component. (See getDefaultToolParameters for details)function, Unique IDs generator, Internal function
getUUID by default.v <- c(0, 0, 1, 1, 0,
0, 0, 0, 0, 0,
-1, 0, 0, 1, 0)
a <- matrix(v, 3, 5)
colnames(a) <- LETTERS[1:5]
rownames(a) <- LETTERS[1:3]
g <- graph2js(a)
Run the code above in your browser using DataLab