rings | R Documentation |
This function generates a generative art ggplot object using pie charts and circles.
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
)
col_palette |
Vector of colours. Default |
bg_col |
Background colour. Default |
x_ring |
Vector of x-co-ordinates for centre of gaps. Default |
y_ring |
Vector of y-co-ordinates for centre of gaps. Default |
r_ring |
Vector of radii for centre of gaps. Default |
x0 |
Vector of x-co-ordinates for pie charts. Default |
y0 |
Vector of y-co-ordinates for pie charts. Default |
r |
Vector of radii for pie charts. Default |
n |
Vector of slices per pie chart. Default |
s |
Seed value. Default 1234. |
A ggplot object.
rings()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.