Learn R Programming

coRNAi (version 1.22.0)

PlotHeatmap: Plot a heatmap of interactions

Description

Plots a heatmap of the mean residuals for each interaction pair.

Usage

PlotHeatmap(toptable, colpal = colorRampPalette(c("blue", "white", "yellow")), key=FALSE,margins=c(7,7),na.color="grey",breaks=seq(-1,1,by=0.01),...)

Arguments

toptable
a data frame created by with the interaction estimates as "logFC" and pair id as "ID". Usually created by topTable function in limma
colpal
color palette to be used in the plot
key
logical should a color key be included
margins
margins for plot
na.color
color for NA values
breaks
mapping data to colors in colpal
...
additional arguments to be passed to heatmap.2 call

Value

a plot

See Also

heatmap.2

Examples

Run this code

data(screen1_raw)
df = cellHTS2df(screen1_raw,neutral="Fluc")
tt = data.frame("size"=runif(length(unique(df$Pair[df$Type=="comb"])),-2,2),stringsAsFactors=FALSE)
rownames(tt) = unique(df$Pair[df$Type=="comb"])
PlotHeatmap(tt)

Run the code above in your browser using DataLab