plot_spirograph | R Documentation |
Taken (with modifications) from: http://menugget.blogspot.com/2012/12/spirograph-with-r.html#more A positive value for 'B' will result in a epitrochoid, while a negative value will result in a hypotrochoid.
plot_spirograph(
radius_a = 1,
radius_b = -4,
dist_bc = -2,
revolutions = 158,
increments = 3160,
center_a = list(x = 0, y = 0)
)
radius_a |
The radius of the primary circle. |
radius_b |
The radius of the circle travelling around a. |
dist_bc |
A point relative to the center of 'b' which rotates with the turning of 'b'. |
revolutions |
How many revolutions to perform in the plot |
increments |
The number of radial increments to be calculated per revolution |
center_a |
The position of the center of 'a'. |
something which I don't yet know.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.