ggp_dag | R Documentation |
Plot a DAG with ggplot and node names with subscripts.
ggp_dag(
dag,
layout = "sugiyama",
text_labels = NULL,
text_size = 7,
box_padding = 1,
legend_pos = "bottom"
)
dag |
dag object |
layout |
Name of layout, default is "sugiyama". |
text_labels |
If NULL (default) the nodes' names are used as is. If a vector of text labels is given they MUST BE IN ALPHABETICAL ORDER. |
text_size |
Integer. Size of the nodes' name. |
box_padding |
Box padding for |
legend_pos |
Legend position of ggplot. |
The DAG will be plotted using ggplot2
and the nodes' names can have
subscript as in mathematical notations. See the source
below for
more details.
ggplot object
https://www.r-bloggers.com/2019/10/how-to-use-math-symbols-with-ggdag-2/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.