Description Usage Arguments Note See Also Examples
Generate colors for terminal edge branch of a phylogenic tree
1 | col.edge.phylo(phy, groups, color = c(2, 3, 4, 5), root.color = 1)
|
phy |
A tree of class phylo |
groups |
A vector indicating what should be of the same color |
color |
A vector indicating the color to choose |
root.color |
A single color, to use for non terminal edge |
This function should be used with the package ade4
ade4
1 2 3 4 5 6 7 8 | data(Birch)
require(vegan)
require(ade4)
require(ape)
dist=vegdist(Betula, method="jaccard", binary=TRUE, diag=FALSE, upper=FALSE, na.rm = FALSE)
dendro=hclust(dist,"complete")
dendro2<-as.phylo(dendro,cex=0.5)
plot(dendro2,,type="u",lab4ut="axial",font=1, adj=1,label.offset = 0.01,edge.color = col.edge.phylo(dendro2,code$Ploidy),tip.color = code$Ploidy)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.