make_grid: Generate a grid of x-y coordinates.

View source: R/data_fun.R

make_gridR Documentation

Generate a grid of x-y coordinates.

Description

make_grid generates a grid of x/y coordinates and returns it (as a data frame).

Usage

make_grid(x_min = 0, x_max = 2, y_min = 0, y_max = 1)

Arguments

x_min

Minimum x coordinate. Default: x_min = 0.

x_max

Maximum x coordinate. Default: x_max = 2.

y_min

Minimum y coordinate. Default: y_min = 0.

y_max

Maximum y coordinate. Default: y_max = 1.

See Also

Other data functions: get_set()

Examples

make_grid()
make_grid(x_min = -3, x_max = 3, y_min = -2, y_max = 2)


ds4psy documentation built on Sept. 15, 2023, 9:08 a.m.