random_check_by_density: Generate a random spatial layout of check

Description Usage Arguments Examples

View source: R/random_check_by_density.R

Description

This function generate a random spatial layout of checks

Usage

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

Arguments

n.row

The row of the retangular grid

n.col

The column of the retangular grid

by.density

The density of checks

Examples

1
2
3
nr=nc=5
tmp = random_check_by_density(nr, nc, .1)
fields::quilt.plot(tmp, nx=nr, ny=nc)

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