Learn R Programming

GeRnika (version 1.0.0)

plot_p: Plot a phylogenetic tree with proportional node sizes and colors.

Description

This function plots a phylogenetic tree with nodes sized and colored according to the proportions of each clone.

Usage

plot_p(phylotree, proportions)

Value

A graph representing the phylogenetic tree, with node sizes and colors reflecting clone proportions.

Arguments

phylotree

An object of the Phylotree class representing the phylogenetic tree to be plotted.

proportions

A numeric vector representing the proportions of each clone in the phylogenetic tree. The length of this vector should be equal to the number of clones in the tree.