Skip to contents

This function generates a generative art ggplot object consisting of dots arranged in a spiral.

Usage

spirals(
  perc = 0.3,
  bg_value = 500,
  limit = 20,
  max_size = 12,
  col_palette = c("#413C58", "#D1495B", "#EDAE49", "#00798C", "#003D5B"),
  highlight_col = "white",
  bg_col = "black",
  s = 1234
)

Arguments

perc

Percentage of data points to be non-NA. Default 0.3.

bg_value

Number of background points. Default 500.

limit

Scale limits. Default 20.

max_size

Maximum circle size. Default 12.

col_palette

Colour palette. Default c("#413C58", "#D1495B", "#EDAE49", "#00798C", "#003D5B").

highlight_col

Colour of background dots. Default "white".

bg_col

Background colour. Default "black".

s

Seed value. Default 1234.

Value

A ggplot object.

Examples

spirals()