Description Usage Arguments Examples
View source: R/diagonal_check_by_density.R
This funciton generates a layout grid with checks on diagonal
1 2 | diagonal_check_by_density(n.row, n.col, by.density, spread.scale = 50 *
max(n.row, n.col))
|
n.row |
The row of the retangular grid |
n.col |
The column of the retangular grid |
by.density |
The density of the check |
spread.scale |
The spreading of the check across diagonal, related to the scale parameter in Cauchy distribution, default=50*max(n.row, n.col) |
1 2 3 | #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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.