spirograph | R Documentation |
Draw Spirograph using ggplot2. See reference at https://blog.csdn.net/w573719227/article/details/104584879
spirograph(R = 25, r = 12, p = 5, col = "skyblue", width = 0.2)
R |
outer circle radius, should only contain one value |
r |
numeric vector of inner circle radius |
p |
numeric vector of distance between pen-point and center of inner circle |
col |
character vector of line color |
width |
numeric vector of line width. Typically, |
Yujie Liu
spirograph()
spirograph(31, seq(11, 20, 2), seq(6, 15, 2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.