getLocation.Layout: Gets the location of a spot given its index

Description Usage Arguments Author(s) See Also Examples

Description

Gets the location of a spot given its index. Returns a vector containing the grid row and the grid column and the spot row and the spot column in that grid.

Usage

1
2
## S3 method for class 'Layout'
getLocation(this, index=NULL, ...)

Arguments

index

The spot index of one or many spots to be found. All values much be within a valid range otherwise an exception is thrown.

Author(s)

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

See Also

This method corresponds to id2image in the sma package. For more information see Layout.

Examples

1
2
3
   layout <- Layout(4,4, 18,18)
   loc <- getLocation(layout, 2001)      # 2 3 4 3
   idx <- getIndex(layout, loc)          # 2001

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