Visualize a causal network as directed graph from node and edge data.
1 2 | plot_causal_network(graph_data, geom = "text", str_wrap_width = 10,
arrow_curvature = 0.05, layout = "auto", ...)
|
graph_data |
A tidygraph object with nodes and edges with "name", "from", "to", and optionally other variables. |
geom |
A character name of geometric object to represent nodes, either "text" or "point". |
str_wrap_width |
A numeric width for the string wrapping algorithm. |
arrow_curvature |
A numeric curvature of the edge arrows. |
layout |
A character name of layout algorithm to use in ggraph, defaults to the force layout. See ?ggraph::ggraph for more. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.