xy.grid {etasFLP}R 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)

[Package etasFLP version 2.2.2 Index]