PlotHeatmap: Plot a heatmap of interactions

Description Usage Arguments Value Author(s) See Also Examples

View source: R/PlotHeatmap.R

Description

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

Usage

1
2
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

Author(s)

Elin Axelsson

See Also

heatmap.2

Examples

1
2
3
4
5
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)

coRNAi documentation built on Nov. 17, 2017, 11:14 a.m.