Learn R Programming

bioplots (version 0.0.1)

heatmap.overlaps: Plot heatmat

Description

Plot heatmat to visualize multiple Venn diagram.

Usage

heatmap.overlaps(x, legend = NA, xlab = NA, ylab = NA, col = NA, lim = NA, x.axis.angle = 90)

Arguments

x
A matrix object or a list object with two-levels.
legend
A legend for colors.
xlab
A label for the x axis.
ylab
A label for the y axis.
col
A character vector of colors. Default is Spectral color palette in RColorBrewer package.
lim
A range of values.
x.axis.angle
A angle for labels in x axis. Default is 90 degrees.

Value

ggplot class object

Examples

Run this code
mat <- matrix(rnbinom(135, size = 10, prob = 0.2), nrow = 15, ncol = 9)
colnames(mat) <- paste0("Treat", 1:9)
rownames(mat) <- c("a", "b", "c", "d", "ab", "ac", "ad", "bc", "bd", "cd",
                   "abc", "abd", "acd", "bcd", "abcd")
head(mat)

heatmap.overlaps(mat)


Run the code above in your browser using DataLab