Skip to contents

This function generates a coloured generative art ggplot object using rectangles.

Usage

window_boxes(
  n_x = 10,
  n_y = 10,
  col_palette = PrettyCols::prettycols("Beach", n = 5),
  linewidth = 2,
  rayshade = FALSE
)

Arguments

n_x

Number of squares per row. Default 10.

n_y

Number of squares per column. Default 10.

col_palette

Vector of colours. Default PrettyCols::prettycols("Beach", n = 5).

linewidth

Width of borders around squares. Default 2.

rayshade

Boolean determining whether the returned plot should be converted to three dimensional using rayshader. If TRUE, {rayshader} is required to be installed. Default FALSE.

Value

A ggplot object.