getColors.RGData: Generates red to green colors for each of the specified spots

Description Usage Arguments Value Author(s) See Also Examples

Description

Generates red to green colors for each of the specified spots, which can be passed to the col argument in most plot functions.

Usage

1
2
## S3 method for class 'RGData'
getColors(this, what=c("A", "M"), slide=1, include=NULL, exclude=NULL, palette=NULL, range=matrix(c(0, 16, -2, 2), nrow = 2), ...)

Arguments

palette

The color palette to be used.

M.range

The range of the M=log2(R/G). Values outside this range will be saturated to the extreme green and red, respectively.

A.range

The range of the A=1/2*log2(R*G). Values outside this range will be saturated to the dark and light, respectively.

Value

Returns nothing.

Author(s)

Henrik Bengtsson (http://www.braju.com/R/)

See Also

For more information see RGData.

Examples

1
2
3
4
5
6
   SMA$loadData(c("mouse.data", "mouse.setup"))
   raw <- RawData(mouse.data, layout=as.Layout(mouse.setup))
   ma <- getSignal(raw)
   rg <- as.RGData(ma)
   col <- getColors(rg)
 

HenrikBengtsson/aroma documentation built on May 7, 2019, 12:56 a.m.