Description Usage Arguments Value Examples

This function generates plot coordinates for each variable in a graph that does not have them already. To this end, the well-known “Spring” layout algorithm is used. Note that this is a stochastic algorithm, so the generated layout will be different every time (which also means that you can try several times until you find a decent layout).

1 | ```
graphLayout(x, method = "spring")
``` |

`x` |
the input graph, of any type. |

`method` |
the layout method; currently, only |

the same graph as `x`

but with layout coordinates added.

1 2 | ```
## Generate a layout for the M-bias graph and plot it
plot( graphLayout( dagitty( "dag { X <- U1 -> M <- U2 -> Y } " ) ) )
``` |

dagitty documentation built on May 19, 2017, 10:30 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.