减慢 R 中的 gganimate
Slow down gganimate in R
如何放慢下面的情节?我正在努力让日子过得慢一点。这是按天显示的三年数据。每天应该是0.25秒左右。
我用来构建此图的代码如下:
library(tidyverse)
library(gganimate)
df_daily %>%
ggplot(aes(longitude, latitude)) +
geom_point(aes(alpha = a)) +
transition_time(flu_day) +
ease_aes('linear', interval = 0.001) +
labs(title = 'Date: {frame_time}')
a <- df_daily %>%
ggplot(aes(longitude, latitude)) +
geom_point(aes(alpha = a)) +
transition_time(flu_day) +
ease_aes('linear', interval = 0.001) +
labs(title = 'Date: {frame_time}')
animate(a,
duration = 274, # = 365 days/yr x 3 years x 0.25 sec/day = 274 seconds
fps = [pick how smooth you want],
nframes = [...or pick it here])
如何放慢下面的情节?我正在努力让日子过得慢一点。这是按天显示的三年数据。每天应该是0.25秒左右。
我用来构建此图的代码如下:
library(tidyverse)
library(gganimate)
df_daily %>%
ggplot(aes(longitude, latitude)) +
geom_point(aes(alpha = a)) +
transition_time(flu_day) +
ease_aes('linear', interval = 0.001) +
labs(title = 'Date: {frame_time}')
a <- df_daily %>%
ggplot(aes(longitude, latitude)) +
geom_point(aes(alpha = a)) +
transition_time(flu_day) +
ease_aes('linear', interval = 0.001) +
labs(title = 'Date: {frame_time}')
animate(a,
duration = 274, # = 365 days/yr x 3 years x 0.25 sec/day = 274 seconds
fps = [pick how smooth you want],
nframes = [...or pick it here])