| draw_dag | R Documentation |
Draw causal graph (DAG)
draw_dag(d)
d |
data.frame, with columns 'from' and 'to'. |
An arrow is drawn between column 'from' and 'to', indicating the potential causal relationship among variables.
nothing.
d <- data.frame(
from = c("Rain", "Sun", "Latitude", "Latitude"),
to = c("Mental health", "Mental health", "Rain", "Sun")
)
draw_dag(d)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.