subplots.MicroarrayData: Prepare for a grid of subplots based on the number of slides

Description Usage Arguments Value Author(s) See Also Examples

Description

Creates a grid of subplots based on the number of slides this dataset contains.

Usage

1
2
## S3 method for class 'MicroarrayData'
subplots(this, ..., adjustMargins=TRUE, mar=c(2, 2, 1, 1))

Arguments

...

Any arguments that subplots.Device takes.

Value

Returns a matrix with the shape of the grids and which contains the subplot indices indicating the order that the subplots are plotted.

Author(s)

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

See Also

layout. subplots.Device. To set the distances between the subplots see graphical parameter mar in par.

Examples

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

  subplots(ma)
  for (k in seq(ma))
    plot(ma, slide=k)

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