png_to_gif | R Documentation |
Converts a vector of PNG files to an animated GIF.
png_to_gif(png, ..., fps = 0.5, out = "Plots/animated_gif.gif")
png |
Path to a PNG file. |
... |
Paths to additional PNG files. |
fps |
Frames per second for the animated GIF. |
out |
Path to the output file. |
A list of magick
objects.
## Not run:
png_files <- list.files(path = "Plots/",
pattern = "*.png",
full.names = TRUE)
png_to_gif(png = png_files,
fps = 1.0,
out = "Plots/animated_gif.gif")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.