powered by
This function draws a phyllotaxis which resembles the arrangement of leaves on a plant stem.
canvas_phyllotaxis( colors, background = "#fafafa", iterations = 10000, angle = 137.5, size = 0.01, alpha = 1, p = 0.5 )
A ggplot object containing the artwork.
ggplot
a string or character vector specifying the color(s) used for the artwork.
a character specifying the color used for the background.
the number of iterations of the algorithm.
the angle at which to place the artwork.
the size of the lines.
transparency of the points.
probability of drawing a point on each iteration.
Koen Derks, koen-derks@hotmail.com
https://en.wikipedia.org/wiki/Phyllotaxis
colorPalette
# \donttest{ set.seed(1) # Simple example canvas_phyllotaxis(colors = colorPalette("tuscany1")) # }
Run the code above in your browser using DataLab