Add a new node to a visNetwork node dataframe
add_node(
nodedf,
id,
label = "",
size = 40,
start = FALSE,
end = FALSE,
shape = "dot",
color.background = "lightblue",
color.border = "lightblue",
shadow = FALSE
)
a data.table containing the nodes.
id of the new node.
label of the new node. default: ""
size of the new node. Default: 40
is this node a start node? Default: FALSE
is this node an end node? Default: FALSE
the shape of this node. See visNetwork docs. Default: "dot"
the background color of the node. Default: "lightblue"
the border color of the node. Default: "lightblue"
Whether this node has a shadow. Default: false
a data.table with one more row than nodedf