Learn R Programming

SpatialFloor (version 1.1.0)

random_check_by_density: Generate a random spatial layout of check

Description

This function generate a random spatial layout of checks

Usage

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

Run this code
# NOT RUN {
nr=nc=5
tmp = random_check_by_density(nr, nc, .1)
fields::quilt.plot(tmp, nx=nr, ny=nc)
# }

Run the code above in your browser using DataLab