plotColorRange: Plot color scale.

Description Usage Arguments Details Author(s) References See Also Examples

Description

Plots the color scale used by the method plotHeatmap.

Usage

1
plotColorRange(colrange)

Arguments

colrange

output from call to plotHeatmap.

Details

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.

Author(s)

Ole Christian Lingjaerde

References

Nilsen et al., "Identifying clusters in genomics data by recursive partitioning", 2013 (in review)

See Also

plotHeatmap

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## 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)

Example output



clusterGenomics documentation built on May 2, 2019, 7:04 a.m.