Take a matrix of cooordiates and generate a marrayLayout object.
Usage
maCompLayout(mat, ncolumns = 4)
Arguments
mat
a matrix of coordinates, this can either be n by 3 matrix
with columns (Block, Row, Column) or n by 4 matrix with columns
(Grid.R, Grid.C, Spot.R, Spot.C)
ncolumns
For n by 3 matrix, the number of meta-grid columns.
By default, it is set to 4.