View source: R/plotMRheatmap.R
plotMRheatmap | R Documentation |
This function plots a heatmap of the 'n' features with greatest variance across rows (or other statistic).
plotMRheatmap(obj, n, norm = TRUE, log = TRUE, fun = sd, ...)
obj |
A MRexperiment object with count data. |
n |
The number of features to plot. This chooses the 'n' features of greatest positive statistic. |
norm |
Whether or not to normalize the counts - if MRexperiment object. |
log |
Whether or not to log2 transform the counts - if MRexperiment object. |
fun |
Function to select top 'n' features. |
... |
Additional plot arguments. |
plotted matrix
cumNormMat
data(mouseData)
trials = pData(mouseData)$diet
heatmapColColors=brewer.pal(12,"Set3")[as.integer(factor(trials))];
heatmapCols = colorRampPalette(brewer.pal(9, "RdBu"))(50)
#### version using sd
plotMRheatmap(obj=mouseData,n=200,cexRow = 0.4,cexCol = 0.4,trace="none",
col = heatmapCols,ColSideColors = heatmapColColors)
#### version using MAD
plotMRheatmap(obj=mouseData,n=50,fun=mad,cexRow = 0.4,cexCol = 0.4,trace="none",
col = heatmapCols,ColSideColors = heatmapColColors)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.