R GGAnimate包未加载gif
我直接使用官方网站gganimate.com上的代码R GGAnimate包未加载gif,r,gganimate,R,Gganimate,我直接使用官方网站gganimate.com上的代码 library(ggplot2) library(gganimate) ggplot(mtcars, aes(factor(cyl), mpg)) + geom_boxplot() + # Here comes the gganimate code transition_states( gear, transition_length = 2, state_length = 1 ) + ente
library(ggplot2)
library(gganimate)
ggplot(mtcars, aes(factor(cyl), mpg)) +
geom_boxplot() +
# Here comes the gganimate code
transition_states(
gear,
transition_length = 2,
state_length = 1
) +
enter_fade() +
exit_shrink() +
ease_aes('sine-in-out')
我不断地将单个png文件保存在我的工作目录中,而不是gif动画作为输出。不过,我只想要gif/动画。我看不到我们必须将这些个体结合在一起的额外步骤。。。有人能给我建议吗?谢谢。我的Tidyverse软件包(包含ggplot2,一个相关库)是1.2.1,在更新到最新版本(1.3.0)后,动画现在在查看器中正确显示
我的结论是,Tidyverse 1.2.1和gganimate 1.0.4可能存在一些错误,阻止了动画的启动。我也遇到了同样的问题,一旦我安装了Gifski软件包,一切都很顺利