buildElems | R Documentation |
call buildNode or buildEdge function, note that only one function can be called
buildElems(elems, type)
elems |
value of elements consisted in dataframe |
type |
Either 'Node' or 'Edge' [string] |
List typed multiple 'Node' or 'Edge' elements. It consisted with repeated buildNode or buildEdge function results with given parameter.
buildNode(), buildEdge()
nodes <- buildElems( # will generate 5 nodes
elems = data.frame(
id = paste0("node", 1:5),
bgColor = "#FFFFFF",
borderColor = "#48DBFB",
borderWidth = 2,
fontSize = 10,
width = 60, height = 20, opacity = 1, stringsAsFactors = FALSE
), type = "Node"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.