image function wrapper

Share:

Description

A simple wrapper around the image function

Usage

1
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)))

Author(s)

Kyle A. Furge

See Also

image,summarizeByRegion

Examples

1
2
3
4
   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))