plotHeatmap {deltaccd} | R Documentation |
Visualize gene co-expression.
Description
Make heatmaps of the co-expression (Spearman correlation) between pairs of selected genes in a dataset.
Usage
plotHeatmap(geneNames, emat, groupVec = NULL)
Arguments
geneNames |
Vector indicating the subset of genes in the rownames of
|
emat |
Matrix of expression values, where each row corresponds to a
gene and each column corresponds to a sample. The elements of |
groupVec |
Optional vector indicating the group to which group each sample belongs. If not provided, the function assumes all samples belong to the same group. |
Value
A ggplot
object, which can be saved using ggplot2::ggsave()
.
Heatmap colors will be directly comparable to any heatmaps created by this
function or by plotRefHeatmap()
.
See Also
calcCCD()
, calcDeltaCCD()
, plotRefHeatmap()
Examples
refCor = getRefCor()
pRef = plotRefHeatmap(refCor)
pTest = plotHeatmap(rownames(refCor), GSE19188$emat, GSE19188$groupVec)