Learn R Programming

reb (version 1.50.0)

regmap: image function wrapper

Description

A simple wrapper around the image function

Usage

regmap(m,scale=c(-6,6),na.color=par("bg"),...)

Arguments

m
a matrix
scale
Include a graph scale showing this range of values ‘image’ function
na.color
the color to draw over NA values
...
additional paramters to ‘image’

Details

A small wrapper around the ‘image’ function to display genome region summary statistics. Additional parameters will be passed along to the image function.

The scale argument is a two-element vector that provides a floor and ceiling for the matrix and allows a crude scale bar to be included on the lower potion of the graph.

For other colors consider using the geneplotter (dChip.colors) or marrayPlots (maPalette) library functions (i.e. regmap(m, col=dChipColors(50)))

See Also

image,summarizeByRegion

Examples

Run this code
   m <- matrix(rnorm(6*4),ncol=6)
   colnames(m) <- c(1:6)
   rownames(m) <- c("1p","1q","2p","2q")
   regmap(m,scale=c(-1,1))

Run the code above in your browser using DataLab