xy.grid: Creates a 2-d grid

View source: R/xy.grid.R

xy.gridR Documentation

Creates a 2-d grid

Description

Creates a 2-d grid.

Usage

xy.grid(rangex, rangey, nx, ny = nx)

Arguments

rangex

A length 2 numeric vector: the range of the x-variable.

rangey

A length 2 numeric vector: the range of the y-variable.

nx

The number of points of the grid in the x-direction.

ny

The number of points of the grid in the y-direction.

Value

A grid of the coordinates of nx*ny points on the x-y plane, expanded in a matrix of nx*ny rows and 2 columns: a row gives the (x,y) coordinates of a point.

Examples

xy.grid(c(3,7),c(11,17),nx=5,ny=4)

etasFLP documentation built on Sept. 14, 2023, 5:06 p.m.