Description Usage Arguments Value Examples
Add a circle to the image
1 2 3 4 5 6 7 8 9 10 11 | add_circle(
input,
x = 0.5,
y = 0.5,
r = 1,
color = "black",
fill = "none",
line_width = 1,
openfile = TRUE,
output = input
)
|
input |
File name of .svg file to input |
x |
x-coordinate of circle center (0 to 1) |
y |
y-coordinate of circle center (0 to 1) |
r |
radius (0 to 1) |
color |
line color |
fill |
fill color |
line_width |
width of line |
openfile |
Open file in default program for .svg format. Defaults to FALSE. |
output |
File name of .svg file to output. Default is to overwrite the input file. |
output name
1 2 3 4 5 | spiro(fixed_radius = 3,
cycling_radius = 1,
file = "add_circle_example.svg",
colors = "red") %>%
add_circle(r = 0.308, fill = "white", color = "white")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.