getGridXY: Get x and y coordinates in a grid

Description Usage Arguments Value Author(s) Examples

View source: R/getGridXY.R

Description

getGridXY generates a matrix of x and y coordinates in a grid. The justification of each coordinate is in center.

Usage

1
getGridXY(n, nrows, ncols = NULL, byrow = TRUE)

Arguments

n

number of coordinates to generate

nrows

number of rows in the grid

ncols

number of columns in the grid

byrow

logical value indicating whether the order of coordinates in the grid is byrow or not

Value

a matrix which gives the x and y coordinates of a grid

Author(s)

Jiahua Liu

Examples

1
2
x <- getGridXY(16)
x

rwoldford/glyphs documentation built on Nov. 14, 2020, 2:29 a.m.