Skip to contents

This function generates a generative art ggplot object using pie charts and circles.

Usage

rings(
  col_palette = PrettyCols::prettycols("Lively"),
  bg_col = "#343046",
  x_ring = c(0.2, 0.9),
  y_ring = c(0.2, 1.8),
  r_ring = c(0.6, 0.4),
  x0 = c(0, 1),
  y0 = c(0, 2),
  r = c(1, 0.7),
  n = c(80, 80),
  s = 1234
)

Arguments

col_palette

Vector of colours. Default PrettyCols::prettycols("Lively").

bg_col

Background colour. Default "#343046".

x_ring

Vector of x-co-ordinates for centre of gaps. Default c(0.2, 0.9).

y_ring

Vector of y-co-ordinates for centre of gaps. Default c(0.2, 1.8).

r_ring

Vector of radii for centre of gaps. Default c(0.6, 0.4).

x0

Vector of x-co-ordinates for pie charts. Default c(0, 1).

y0

Vector of y-co-ordinates for pie charts. Default c(0, 2).

r

Vector of radii for pie charts. Default c(1, 0.7).

n

Vector of slices per pie chart. Default c(80, 80).

s

Seed value. Default 1234.

Value

A ggplot object.