powered by
This funciton generates a layout grid with checks on diagonal
diagonal_check_by_density(n.row, n.col, by.density, spread.scale = 50 * max(n.row, n.col))
The row of the retangular grid
The column of the retangular grid
The density of the check
The spreading of the check across diagonal, related to the scale parameter in Cauchy distribution, default=50*max(n.row, n.col)
# NOT RUN { #Creat a 30 by 30 layout with 0.2 density tmp = diagonal_check_by_density(30, 30, 0.2) fields::quilt.plot(tmp, nx=30, ny=30) # }
Run the code above in your browser using DataLab