toXYMatrix.Layout: Layouts out values in the same way as the spots are layout

Description Usage Arguments Author(s) Examples

Description

Layouts out values in the same way as the spots are layout.

Usage

1
2
## S3 method for class 'Layout'
toXYMatrix(this, values=seq(nbrOfSpots(this)), flip=FALSE, ...)

Arguments

values

The values to be put into the matrix.

flip

If TRUE the resulting matrix is flipped vertically before returned.

Author(s)

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
  layout <- Layout(3,2, 2,3)

  # Print the indices of the each of the spots as they appear
  # on the slide(s).
  print(toXYMatrix(layout))

  #      [,1] [,2] [,3] [,4] [,5] [,6]
  # [1,]    1    2    3    7    8    9
  # [2,]    4    5    6   10   11   12
  # [3,]   13   14   15   19   20   21
  # [4,]   16   17   18   22   23   24
  # [5,]   25   26   27   31   32   33
  # [6,]   28   29   30   34   35   36

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