Skip to contents

Creates a uniform 2D grid over [0,1]^2 for function evaluation.

Usage

create.grid(axis.n.pts)

Arguments

axis.n.pts

Integer number of points along each axis

Value

List containing:

x

Numeric vector of x coordinates

y

Numeric vector of y coordinates

grid

Data frame with all (x,y) coordinate pairs

Examples

grid <- create.grid(50)
str(grid)