Match elements within a tree grob (generated by
treeGrob), using the name or class of the child
A grob created by
The class of the object to match. Currently this can
be any class attribute (for cases with multiple inheritance) but
this might change soon to be only the primary class. Also it only
makes sense to match things with a
The name of the object to match. Some functions set
the name automatically for you (e.g.,
Give a warning if no match is found.
This matches elements that were added to the tree by the
operator; such as
tree_grob + tree_node_labels(). A few
rules are useful here (and may change).
All classes provided by
forest are prefixed with
tree_, so elements provided as
class will almost
always need this adding. I might change things to automatically
add this in the future though, as the prefix might change.
produce objects with class
tree_tip_labels will always have the name of
tree_node_labels will always have the name
nodes, so they can be addressed with
class="tree_labels", name="tips"), for example.
There can be only one set of branches and this always has the name "branches".
When both specified,
name must both
A list of
gPath objects that can be used to
reference children relative to
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.