ggsplitnet | R Documentation |
drawing phylogenetic tree from phylo object
ggsplitnet(tr, mapping = NULL, layout = "slanted", mrsd = NULL, as.Date = FALSE, yscale = "none", yscale_mapping = NULL, ladderize = FALSE, right = FALSE, branch.length = "branch.length", ndigits = NULL, ...)
tr |
a networx object |
mapping |
aes mapping |
layout |
so far only 'slanted' is supported. |
mrsd |
most recent sampling date |
as.Date |
logical whether using Date class in time tree |
yscale |
y scale |
yscale_mapping |
yscale mapping for category variable |
ladderize |
logical |
right |
logical |
branch.length |
variable for scaling branch, if 'none' draw cladogram |
ndigits |
number of digits to round numerical annotation variable |
... |
additional parameter |
tree
Klaus Schliep
Schliep, K., Potts, A. J., Morrison, D. A. and Grimm, G. W. (2017), Intertwining phylogenetic trees and networks. Methods Ecol Evol. 8, 1212–1220. doi:10.1111/2041-210X.12760
ggtree
, networx
,
consensusNet
, neighborNet
data(yeast, package='phangorn') dm <- phangorn::dist.ml(yeast) nnet <- phangorn::neighborNet(dm) ggsplitnet(nnet) + geom_tiplab2()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.