pointillise_gif: Animate ggplot pointillism

Description Usage Arguments Value Examples

Description

Animate ggplot pointillism

Usage

1
pointillise_gif(img_df, output_file, nframes, interval)

Arguments

img_df

A tidy data frame - output from img_df()

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

Value

An animated gif file

Examples

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)

alexwhan/pointillist documentation built on May 10, 2019, 8:58 a.m.