plot.CLD | R Documentation |
Causal loop diagrams are generated through an interface to the
DiagrammeR
package. Node and edge characteristics can be modified directly
by manipulating the CLD object or by using functions setEdgeFormat()
and
setNodeFormat()
.
## S3 method for class 'CLD' plot(CLD, nodes = NULL, steps = 1, recolor = TRUE, textWidth = 10)
CLD |
an object of class |
nodes |
Subset of nodes in the CLD to visualize. |
steps |
Nodes not in the |
recolor |
Logical. Recolor ancillary links (i.e., links involving
nodes other than those specified in the |
textWidth |
The target width of node names, which are all passed to
|
See 'Sources' for links to additional documentation from the
DiagrammeR
package and the GraphViz website.
Jarrod Dalton
http://rich-iannone.github.io/DiagrammeR/graphviz_and_mermaid.html
See especially the section on Attributes
http://graphviz.org/
http://graphviz.org/content/attrs
## Not run: #* Plots may open in a browser. L <- CLD(from = c("a","a","b","c","d","d","e"), to = c("b","c","a","d","b","a","d"), polarity = c(1,1,-1,-1,1,-1,1)) %>% addNodeData(tibble::tibble(node="c", group="core")) %>% addNodeGroup("core", fontcolor="red", color="yellow") plot(L) plot(L, nodes=c("c")) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.