Add a moving circle to paths. Resulting file best viewed in Google Chrome.
add_pathdot(input, colors = "red", transparency = NA, radius = 3, duration = 10, delay = 0, path_id = "pathdot", openfile = TRUE, output = input)
File name of .svg file to input
Vector of background color
Transparency of colors. Ranges from 0 to 1. Default is NA (i.e., leave the colors as specified in the colors argument).
Radius of dot
Number seconds to complete animation
Number of seconds to delay animation
Set id to path
Open file in default program for .svg format. Defaults to FALSE.
File name of .svg file to output. Default is to overwrite the input file.
library(spiro) spiro( fixed_radius = 3, cycling_radius = 1, file = "add_pathdot.svg" ) %>% add_pathdot(duration = 3)