Learn R Programming

ggtree (version 1.2.1)

read.tree: read newick tree

Description

read newick tree

Usage

read.tree(file = "", text = NULL, tree.names = NULL, skip = 0, comment.char = "#", keep.multi = FALSE, ...)

Arguments

file
file name
text
alternatively, using newick text
tree.names
if read several trees, specify their names
skip
number of lines of the input file to skip
comment.char
a single character, the remaining of the line after this character is ignored.
keep.multi
if 'TRUE' and 'tree.names = NULL' then single trees are returned in 'multiPhylo' format with any name that is present. Default is 'FALSE'
...
further arguments to be passed to 'scan()'.

Source

This is just the imported function from the ape package. The documentation you should read for the read.tree function can be found here: read.tree

See Also

read.tree