我第一次使用 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'
谢谢!