Helper function for setting up plotting directions.
tree_direction(direction, theta0 = 0)
A character vector (scalar) indicating the direction. Must be one of "right", "left", "up", "down", "circle" or "semicircle"
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...
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.