equal_space_check_by_density: Generate a spatial layout of checks by density

Description Usage Arguments Value Examples

View source: R/equal_space_check_by_density.R

Description

This function generate a check layout in a retangular grid, The check is evenly distributed by the given density

Usage

1
equal_space_check_by_density(n.row, n.col, by.density)

Arguments

n.row

The row of a retangular grid

n.col

The column of a retangular grid

by.density

The density of the check

Value

A dataframe will return

Examples

1
2
3
4
# To produce a 4 by 5 field with check distributed by density=0.2
nr = 4; nc = 5
example.tmp = equal_space_check_by_density(nr, nc, .2)
fields::quilt.plot(example.tmp, nx=nr, ny=nc)

SpatialFloor documentation built on May 2, 2019, 1:45 p.m.