powered by
This function generate a check layout in a retangular grid, The check is evenly distributed by the given density
equal_space_check_by_density(n.row, n.col, by.density)
The row of a retangular grid
The column of a retangular grid
The density of the check
A dataframe will return
# NOT RUN { # 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) # }
Run the code above in your browser using DataLab