Description Usage Arguments Value Examples
Animate ggplot pointillism
1 | pointillise_gif(img_df, output_file, nframes, interval)
|
img_df |
A tidy data frame - output from |
output_file |
the file name of the gif |
nframes |
Integer - the number of frames in the animation |
interval |
Numeric - the interval between frames in seconds |
An animated gif file
1 2 3 4 5 6 7 | ## ImageMagick must be installed on your system
img_path <- system.file("extdata/images", "seurat.png", package = "pointillist")
png_df <- img_df(img_path)
png_df <- colour_depth(png_df, 8)
png_df_sample <- sample_df(png_df, 0.3)
pointillise_gif(png_df_sample, "seurat.gif", 5, 0.2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.