plotColorRange {clusterGenomics} | R Documentation |
Plots the color scale used by the method plotHeatmap
.
plotColorRange(colrange)
colrange |
output from call to |
This method is designed to be used in conjunction with plotHeatmap
and plots the color range used in a call to the latter method. It does not create a new graphics device if one is already open, so it is typically preceded by a call to windows()
or a similar method.
Ole Christian Lingjaerde
Nilsen et al., "Identifying clusters in genomics data by recursive partitioning", 2013 (in review)
plotHeatmap
## Create a dummy data set with 50 rows and 100 columns X = matrix(rnorm(50*100), 50) ## Create a screen with 3 x 3 virtual panels and use the last two rows for the ## heatmap layout(matrix(c(2,3,3,1,1,1,1,1,1),3,3,byrow=TRUE)) par(mar=c(2,2,2,2)) ## Plot heatmap and then the color range above the heatmap crange = plotHeatmap(X, c(0,0)) # c(0,0) specifies no margin around heatmap plotColorRange(crange)