您能告诉我为什么用 R 编译的动画 GIF 的 MWE 没有动画吗?
library("ggplot2")
library("gifski")
library("gganimate")
library("dplyr")
library("lubridate")
animate(ggplot(tribble(
~time, ~y,
"2020-01-01", 2,
"2020-02-01", 4,
"2020-03-01", 3
) %>% mutate(time = as.numeric(ymd(time)))) +
geom_line(aes(x=time, y=y)) +
transition_time(time),
renderer = gifski_renderer(file = "test.gif"))
结果是静止的