| addNodeGroup | R Documentation |
This function specifies the node attributes for a group of nodes, allowing easy format management for node groups.
addNodeGroup(CLD, groups, ...)
CLD |
A causal loop diagram object |
groups |
A character vector indicating the group name(s) |
... |
Other node attributes passed to |
An updated CLD object; in particular, with updated $formats$node dataset.
setNodeFormat
L <- CLD(from = c("a","a","c","c","d"),
to = c("b","c","a","d","a")) %>%
addNodeData(tibble(node = c("c","d","e","f"),
group = c("I"," ","II","I"))) %>%
addNodeGroup(groups=c("I","II"),
fillcolor="yellow",
shape=c("box","ellipse"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.