build_grid_squaretile: Create a grid with square tiles

Description Usage Arguments Details Value See Also

View source: R/build_grid_squaretile.R

Description

Create a rectangular grid of regularly-spaced points (square tiles).

Usage

1
build_grid_squaretile(coords, npts, pad = 0, ...)

Arguments

coords

A matrix or data.frame of coordinates with two columns

npts

The approximate total number of points of the output grid

pad

Padding on each dimension (a positive number makes a grid that is larger than the ranges of the coordinates).

...

other arguments are silently ignored

Details

This function creates a grid that covers a set of points. The distance between points is the same on all dimensions (tiles are squared. It is only implemented for 2D grid so coords must have at most two columns.

Value

The coordinates of a grid of points as a data.frame with approximately npts rows and ncol(coords) columns. Names are transfered from the coords data frame.

See Also

Other grid.building.functions: build_grid_ahull_crop, build_grid_ahull_fill, build_grid_identical


rollply documentation built on May 30, 2017, 8:07 a.m.