tiles_pattern: Make a Random Bathroom Design

Description Usage Arguments Value See Also Examples

View source: R/tiles_plot.R

Description

Function will generate a random pattern of tiles that can serve as a bathroom design.

Usage

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)

Arguments

colors

character vector with the colors to use.

nr_of_each_col

prevalence of each color in colors, should have same length as colors.

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.

Value

A ggplot2 object with the pattern.

See Also

https://edwinth.github.io/blog/bathroom-with-r/

Examples

1

EdwinTh/thatssorandom documentation built on Jan. 18, 2020, 2:55 p.m.