Description Usage Arguments Details Author(s)
Helper function for setting up plotting directions.
1 | tree_direction(direction, theta0 = 0)
|
direction |
A character vector (scalar) indicating the direction. Must be one of "right", "left", "up", "down", "circle" or "semicircle" |
theta0 |
Initial angle when making a semicircle plot. |
This function is mostly used internally, but is useful for circular plots that need to start at an angle different to zero. It might eventually hold more basic layout options, such as curly brackets.
This might change a little to become "shape", in which case we'd have rectangular (with direction l, r, u, d), semicircle with the same directions, circle with any direction, etc. Everything can change...
Rich FitzJohn
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.