Hello,
As a newbie (1 week in to R) I'm trying to use the gganimate package on some data from gapminder. I've written/copied the following:
p <- ggplot(
gapminder,
aes(x = gdpPercap, y=lifeExp, size = pop, colour = country)
) +
geom_point(show.legend = FALSE, alpha = 0.7) +
scale_color_viridis_d() +
scale_size(range = c(2, 12)) +
scale_x_log10() +
labs(x = "GDP per capita", y = "Life expectancy")
p
p + transition_time(year) +
labs(title = "Year: {frame_time}")
and when running I get the following warning message:
Warning message:
file_renderer failed to copy frames to the destination directory
As far as I'm aware I have the requisite rendering packages (gifski, png).
Any thoughts on how to get this to run?
Thanks,
Christian