Description Usage Arguments Details Value Author(s) Examples
cartoon.plot
Plot phylogenies with cartoon-ised polytomies
1 2 |
tree |
ape::phylo object |
tip.groups |
list where each element are the tip *numbers* that should be in a cartoon polytomy (see auto.polies below) |
clade.col |
a vector of length tip.groups with colours for each polytomy OR a single colour for all polytomies OR NULL (the default) to make all polytomies rainbow-coloured |
br.clade.col |
the colours of the branches inside the cartoon. If NULL (the default, which you probably want), they don't show up in the plot. |
auto.polies |
generate tip.groups by making a cartoon polytomy for all terminal polytomies. Setting this to TRUE (default is FALSE) will over-ride any tip.groups information. Note the function's return values is you want to set up a weird interaction of polytomies |
... |
additional arguments to pass to ape::plot.phylo |
Makes a simple 'cartoon' phylogeny where polytomies are joined together in a big triangle. Could cause problems if you're outputting to PDF, sorry!
A list containing the tip.groups plotted, the clade colours they were plotted under, the edges that were obscured by the cartoon printing, and a list of the number of the node that each polytomy started under
Will Pearse
1 2 3 4 5 6 7 8 | ## Not run:
require(ape)
tree <- read.tree(text="(((((A,B,C,D,E),(F,G,H,I,J)),H),K),L);")
cartoon.plot(tree, auto.polies=TRUE)
cartoon.plot(tree, list(1:5, 6:10), clade.col="grey30")
cartoon.plot(tree, list(1:5, 6:10), clade.col=c("blue", "red"))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.