write.beast | R Documentation |
Export treedata
object to BEAST NEXUS file. This function was adopted and modified from ape::write.nexus
write.beast(treedata, file = "", translate = TRUE, tree.name = NULL)
treedata |
|
file |
output file. If file = "", print the output content on screen |
translate |
whether to translate taxa labels |
tree.name |
names of the trees, NULL to use existing tree names |
output file or file content on screen
Guangchuang Yu
nhxfile <- system.file("extdata/NHX", "phyldog.nhx", package="treeio")
nhx <- read.nhx(nhxfile)
write.beast(nhx)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.