View source: R/animate_pacman.R
animate_pacman | R Documentation |
Create a Pac-Man Game GIF
animate_pacman( pacman, ghosts, file = NULL, caption = iconv("© Mickaël 'Coeos' Canouil", "UTF-8"), font_family = "" )
pacman |
A |
ghosts |
A |
file |
File name to save GIF on disk. |
caption |
A caption to add below the GIF. |
font_family |
The font family to use for the caption. |
Returns a gif_image
object. See gganimate::gifski_renderer
.
library(ggpacman) if (interactive()) { animate_pacman(pacman = pacman, ghosts = list(blinky, pinky, inky, clyde)) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.