write.beast.treedata | R Documentation |
This function was adopted and modified from treeio::write.beast to export a list of trees instead of a single tree.
write.beast.treedata(treedata, file = "", translate = TRUE, tree.name = "STATE")
treedata |
An S4 class object of type |
file |
Output file. If |
translate |
Whether to translate taxa labels. |
tree.name |
Name of the trees, default |
Writes object type treedata
containing multiple trees to a file or file content on screen
#Load file with multiple trees ## Not run: trees_file = system.file("extdata", "ex_offset.trees", package = "EvoPhylo") posterior_trees_offset = treeio::read.beast(trees_file) #Write multiple trees to screen write.beast.treedata(posterior_trees_offset) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.