Learn R Programming

RNAinteract (version 1.20.0)

grid.sgiHeatmap: A heatmap grob

Description

A grob is created and printed for a matrix PI which is intended to represent pairwise interaction scores.

Usage

grid.sgiHeatmap(PI, pi.max = NULL, main = expression(paste(pi, "-score")), hc.row = NULL, hc.col = NULL)

Arguments

PI
A matrix of pairwise interactions.
pi.max
The interaction score at the top end of the colorbar. pairwise interaction score larger than this value can not be distinguished anymore.
main
A title for the plot.
hc.row
An hierarchical clustering as produced by hclust of the rows.
hc.col
Clustering of the columns.

Value

Details

A heatmap is plotted with positive interaction represented in yellow and negative interactions represented in blue. A colorbar is plotted on the left and dendrograms are added. This function can be used to integrate the plot in other grid objects. It is recommended to use the function plotHeatmap to plot heatmaps of an RNAinteract object.

See Also

RNAinteract-package

Examples

Run this code
data("sgi")
PI = getData(sgi, type="pi", format="targetMatrix", screen="1", channel="nrCells")
grid.sgiHeatmap(PI)

Run the code above in your browser using DataLab