learn_df | R Documentation |
Learn initial data frame from Newick format tree leaves.
learn_df(tree, node = FALSE, tip = TRUE)
tree |
Newick tree file or phylo object. |
node |
a logical to control output with node label or not. The default value is FALSE. |
tip |
a logical to control output tip label or not.The default value is TRUE. |
a list containing
node |
a data frame with id column. The id information is from the node label in Newick format tree file or phylo object. If the node parameter set as FALSE, the node information will be NULL. |
tip |
a data frame with id column. The id information is from the tip label in Newick format tree file or phylo object. If the tip parameter set as FALSE, the tip information will be NULL. |
tree <- system.file("extdata",
"tree_of_itol_templates.tree",
package = "itol.toolkit")
sub_df <- learn_df(tree,node=TRUE,tip=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.