The phylogram R package is a tool for for developing phylogenetic trees as deeply-nested lists known as "dendrogram" objects. It provides functions for conversion between "dendrogram" and "phylo" class objects, as well as several tools for command-line tree manipulation and import/export via Newick parenthetic text. This improves accessibility to the comprehensive range of object-specific analytical and tree-visualization functions found across a wide array of bioinformatic R packages.
Functions
A brief description of the primary phylogram functions are provided with links to their help pages below.
File import/export
read.dendrogramreads a Newick parenthetic text string from a file or text connection and creates an object of class"dendrogram"write.dendrogramoutputs an object of class"dendrogram"to a text string or file in Newick format
Object conversion
as.phylo.dendrogramconverts a dendrogram to an object of class "phylo""dendrogram"as.dendrogram.phyloconverts a "phylo" object to a dendrogram
Tree editing and manipulation
pruneremove branches from adendrogramobject based on regular expression pattern matchingladderreorders the branches of adendrogramobject to aid visualizationremidpointrecursively sets "midpoint" and "members" attributes for a nested list/dendrogramobjectrepositionshifts adendrogramobject up or down (or sideways if plotted horizontally)as.cladogrammodifies the "height" attributes of the nodes such that all leaves terminate at zero
