addNodeGroup: Create a format class for a group of nodes in a causal loop...

View source: R/addNodeGroup.R

addNodeGroupR Documentation

Create a format class for a group of nodes in a causal loop diagram.

Description

This function specifies the node attributes for a group of nodes, allowing easy format management for node groups.

Usage

addNodeGroup(CLD, groups, ...)

Arguments

CLD

A causal loop diagram object

groups

A character vector indicating the group name(s)

...

Other node attributes passed to setNodeFormat().

Value

An updated CLD object; in particular, with updated $formats$node dataset.

See Also

setNodeFormat

Examples

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"))

jarrod-dalton/causalloop documentation built on May 10, 2022, 8:08 a.m.