load.tree {phylocanvas} | R Documentation |
load tree
Description
load a newick tree.
Usage
load.tree(treefile, ...)
Arguments
treefile |
Required. Path of phylogenetic tree to read |
... |
Optional. Pass any other arguments to read.tree |
Details
this is the recommended way to load a tree for use with phylocanvas. The reason is that
all of the javascript selector methods require that the nodes are named and the
selection of nodes based on names is straightforward with phylo4
objects. Therefore this function will read your newick tree, add names, and return a
phylo4
object that can be easily manipulated and subsetted
generating custom displays.
Value
a phylo4
tree object.
Examples
birdfile <- system.file("treedata/birdfamilies.tree", package="phylocanvas")
tree <- load.tree(birdfile)
[Package phylocanvas version 0.1.3 Index]