Description Usage Arguments Value See Also Examples
Function will generate a random pattern of tiles that can serve as a bathroom design.
1 2 3 | tiles_pattern(colors = c("darkblue", "cyan3", "lightblue1", "white"),
nr_of_each_col = rep(40, 4), nr_height = 8, nr_width = 20,
max_adjacent = 2)
|
colors |
character vector with the colors to use. |
nr_of_each_col |
prevalence of each color in |
nr_height |
nr of tiles in vertical direction. |
nr_width |
nr of tiles in horizontal directions. |
max_adjacent |
maximum nr of adjacent tiles of the same color in both directions. |
A ggplot2
object with the pattern.
https://edwinth.github.io/blog/bathroom-with-r/
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.