【发布时间】:2019-05-13 01:36:38
【问题描述】:
我是第一次使用 gganimate,我只是想从 github 运行示例代码,就是这样:
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')
但是当我尝试运行它时出现错误。 (这与我尝试用 gganimate 做任何事情的错误相同。)是这样的:
Error in gifski_first_error <<- FALSE :
cannot change value of locked binding for
'gifski_first_error'
谢谢!
【问题讨论】:
-
哦 - 那是我的错...会马上解决
标签: r animation ggplot2 graph gganimate