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"
)
Run the code above in your browser using DataLab