Skip to contents

This function generates a coloured generative art ggplot object from treemaps.

Usage

boxes(
  n = 100,
  perc = 0.1,
  col_palette = rcartocolor::carto_pal(n = 7, "DarkMint"),
  bg_col = "black",
  s = 1234
)

Arguments

n

Number of boxes

perc

Relationship between box size and colour. Value between 0 and 1 where 0 represents randomness and 1 perfect identical. Default 0.1.

col_palette

Vector of colours. Default "DarkMint" colour palette from rcartocolor.

bg_col

Background colour. Default "black".

s

Seed value. Default 1234.

Value

A ggplot object.