getColors.MAData: Generates colors for each of the specified spots

Description Usage Arguments Value Author(s) See Also Examples

Description

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

Usage

1
2
## S3 method for class 'MAData'
getColors(this, what=c("A", "M"), slide=1, include=NULL, exclude=NULL, palette=NULL, range="auto", ...)

Arguments

slide

Specifies for which slide the colors should be generated for.

include

The spot indices to be plotted. If NULL all spots are considered.

exclude

The spot indices not to be plotted. If NULL no spots are excluded (from all or from the one specified by include).

palette

The palette to be used. Currently, only the "redgreen" palette is available.

M.range

The range of "normal" M values. All M values outside this range will be cutoff.

A.range

The range of "normal" A values. All A values outside this range will be cutoff.

Value

Returns a vector of colors.

Author(s)

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

See Also

Colors. For more information see MAData.

Examples

1
2
3
4
5
6
7
8
9
   # The option 'dataset' is used to annotate plots.
   options(dataset="sma:MouseArray")

   SMA$loadData("mouse.data")
   layout <- Layout$read("MouseArray.Layout.dat", path=system.file("data-ex", package="aroma"))
   raw <- RawData(mouse.data, layout=layout)
   ma <- getSignal(raw, bgSubtract=TRUE)
   col <- getColors(ma, slide=4)
 

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