generate_circles | R Documentation |
Create inner concentric circles
generate_circles(
num_circles,
global_max_r,
circle_gap_p,
max_alpha,
min_concentric_circles = 1,
max_concentric_circles = 20,
equal_concentric_spacing,
num_colors,
frame = F,
seed
)
num_circles |
an integer value, the number of circles in the artwork |
global_max_r |
a numeric value, the maximum allowable radius of each circle |
circle_gap_p |
a numeric value, higher values increase the gap between each circle; technically, the radius of a new circle will have a max radius of (1 - circle_gap_p) multiplied by the distance from the center of the new circle to the edge of the nearest other circle |
max_alpha |
a numeric value between 0-1, the maximum alpha value for each circle |
min_concentric_circles |
an integer value, the minimum number of concentric circles within each circle |
max_concentric_circles |
an integer value, the maximum number of concentric circles within each circle |
equal_concentric_spacing |
a boolean value, set to true to make concentric circles evenly spaced |
num_colors |
an integer value, the number of colors in the artwork; each circle is randomly assigned a color from a pool of this size |
frame |
a boolean value, set to true to include a circular frame around the artwork |
seed |
a numeric value, the seed to initialize psuedo-randomness |
a random work of art as a ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.