Fmgrid: Generate a grid of points

Description Usage Arguments Value

Description

Function to generate points on a grid. Points are assembled in an n \times 2 matrix with NA's separating series of vertical and horizontal lines in the grid.

Usage

1
Fmgrid(xlim, ylim, xn = 8, xspace, xres, yn = 8, yspace, yres)

Arguments

xlim

range in x-axis

ylim

range in y-axis

xn, yn

the number of vertical and horizontal lines, respectively. This parameter is overridden by xspace and yspace if specified.

xspace, yspace

the distance between successive vertical and horizontal lines, respectively

xres, yres

the distance between points generated along horizontal and vertical lines, respectively; if xres and yres are not specified, then points are generated only at the nodes of intersection of the vertical and horizontal lines. Note that these nodes appear in duplicate as sequences of points are generated first for the vertical lines and then for the horizontal lines.

Value

A list containing the following named components:

grid

coordinates of grid points

rl.ind

Indicator of points generated from vertical or horizontal line


EnviroStat documentation built on May 2, 2019, 2:32 p.m.