Learn R Programming

ggtree (version 1.2.1)

gplot: gplot

Description

view tree and associated matrix

Usage

gplot(p, data, low = "green", high = "red", widths = c(0.5, 0.5), color = "white", font.size = 14)

Arguments

p
tree view
data
matrix
low
low color
high
high color
widths
widths of sub plot
color
color
font.size
font size

Value

list of figure

Examples

Run this code
nwk <- system.file("extdata", "sample.nwk", package="ggtree")
tree <- read.tree(nwk)
p <- ggtree(tree)
d <- matrix(abs(rnorm(52)), ncol=4)
rownames(d) <- tree$tip.label
colnames(d) <- paste0("G", 1:4)
gplot(p, d, low="green", high="red")

Run the code above in your browser using DataLab