ProfilePlot: Plot the phylogenetic profiles

View source: R/ProfilePlot.R

ProfilePlotR Documentation

Plot the phylogenetic profiles

Description

Plot the phylogenetic profiles along with the phylogenetic tree. This function is based on 'heatmap.2()' from 'gplots' package.

Usage

ProfilePlot(profile, dend, ...)

Arguments

profile

a data frame or matrix contains the phylogenetic profiles. Each column is a profile. The row names must match the tip labels of the tree.

dend

the dendrogram that will be plotted on the left side. See 'TreeToDen()'.

...

some other parameters available for 'heatmap.2()', such as 'main', 'xlab', 'labRow'...

Examples

d <- TreeToDend(rtree(50))
p <-  matrix(sample(0:1,100, replace=T), nrow=50)
rownames(p) <- labels(d)
ProfilePlot(p, d, main="Plot of two profiles")

beiko-lab/evolCCM documentation built on Feb. 26, 2024, 5:21 p.m.