-1

如何减慢下面的情节?我试图慢慢地度过这些日子。这是按天显示的三年数据。每天应该是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}')
4

1 回答 1

13
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])
于 2018-10-19T21:27:30.837 回答