grid2 function

Cartesian coordinates generator

Cartesian coordinates generator

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.

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.

Returns

Data Frame with a grid

Examples

grid2(a = 0, b = 10, c = .1)
  • Maintainer: Pedro Cavalcante Oliveira
  • License: GPL-3
  • Last published: 2019-07-30

Useful links