Learn R Programming

Recon (version 0.3.0.0)

grid2: Cartesian coordinates generator

Description

This function creates a grid (more especifically, a 2-cell) of coordinates in R^2. Useful for plotting and generating data points with which to apply some functions.

Usage

grid2(a = 0, b = 100, c = 0.5)

Arguments

a

is the grid's lower bound. Defaults to 0.

b

is the grid's upper bound. Defaults to 100.

c

is the "by" parameter, the grid's density. Defaults to .5.

Value

Data Frame with a grid

Examples

Run this code
# NOT RUN {
grid2(a = 0, b = 10, c = .1)

# }

Run the code above in your browser using DataLab