我如何减慢下面的情节?我正试着慢慢地度过这些日子。这是按天显示的三年数据。每天应该是大约 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}')
Run Code Online (Sandbox Code Playgroud)
Jon*_*ing 12
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])
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
5632 次 |
| 最近记录: |