aes_dag | R Documentation |
aes_dag()
is a wrapper around aes()
that specifies x
, y
, xend
, and
yend
, which are required for most DAG visualizations. It merges any
additional aesthetics, e.g. color
or shape
, with the default aesthetic
mappings.
aes_dag(...)
... |
Additional aesthetic mappings passed as arguments. These can include any aesthetic supported by ggplot2 (e.g., color, size, shape). |
A ggplot2
aesthetic mapping object that includes both the default
DAG aesthetics and any user-specified aesthetics.
library(ggplot2)
confounder_triangle() %>%
dag_adjustment_sets() %>%
ggplot(aes_dag(color = adjusted)) +
geom_dag() +
facet_wrap(~set)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.