Specifying group color in VisNetwork does not work
I am trying to plot several causal loop diagrams based on a data set that contains to, from, polarity, and group, the group a variable belongs to. In the diagram I want the nodes of each group to have different colors. These colors are shown in the legend. Even though I specify in the visGroups parameter of VisNetwork the name and color of each group, the nodes in my diagram default to blue. What can I do to make each node the color of their corresponding group?