Description Usage Arguments Value Warning Author(s)
Plot the backbone of a forest tree. This takes a tree and turns
it into a graphical object that can be plotted with
grid.draw
(soon that part will be automated and a wrapper
will be added).
1 |
tree |
A forest tree. The underlying data do not matter at
this point (but that may change in future). Note that this cannot
be an ape |
direction |
Direction in which to plot the tree. Valid
options are “right” (the default), “left”,
“up”, “down”, |
name |
Name of the grob (optional). |
gp |
Graphical parameters that the segments will take. This one is really up for grabs. I'd suggest being fairly tame here and treating this as scalar values only. There is pretty much no way that non-scalar values will do the right thing. I'll sort out a nicer way of actually changing the colour of edges and things like that without relying on blindly passing in vectors and hoping for the best. |
vp |
A grid viewport object that will be pushed before the object is drawn (optional) |
A tree grob.
Everything up for change in the interface here. Do not depend on this or I will probably break your code.
Rich FitzJohn
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.