How to save frames of gif created using gganimate package
问题 I will use the gapminder data as an example. Let's say I create this animation: library(gapminder) library(ggplot2) theme_set(theme_bw()) p <- ggplot(gapminder, aes(gdpPercap, lifeExp, size = pop, color = continent, frame = year)) + geom_point() + scale_x_log10() library(gganimate) gganimate(p) gganimate(p, "output.gif") Now, I want to have access to the individual images (frames) that constitute the gif. Is there a way to do this in gganimate or do I need to use the animation package? 回答1: