Description Usage Arguments Details Author(s)
Put a brace around a single clade.
1 2 |
label |
Label in the tree to attach the brace to. The brace will span all descendents of the node (if internal) or just the single species (if terminal). NB this is not the label that will be eventually drawn next to the brace. |
offset |
A |
alignment |
Alignment of multiple braces, which has a visual effect only on non-ultrametric trees. Possible options are "none" (the default; all braces are put 'offset' away from the longest tip for each brace), "set" (all braces are put 'offset' away from the longest tip among all tips spaned by braces in this set of braces) and "global" (all braces are put 'offset' away from the longest tip in the tree). |
name |
Name for the brace (optional) |
gp |
Graphical parameters (optional) |
This is going to change, but exists as a holding place so that I can develop the lower level code. Eventually this is going to be subsumed within things like the taxonomic alignment, but that will probably work by using a series of clades anyway, so we're unlikely to be outrageously off.
Eventually this has to handle a brace (type [straight line, square bracket, curly bracket], offset from tree, graphical styling [colour, line type, line thickness]) and a label for the brace (position [centred, top, bottom], graphical styling [colour, font, etc], text alignment, offset from brace). So this function will break into pieces as development proceeds. For now, starting with the simplest cases and moving forward.
Rich FitzJohn
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.