小编Jos*_*rah的帖子

is there any way to create an animation (gganimate) with ranges as transition times?

Is there any way to make gganimate work for transition times that are ranges of years? In my data I have three time points, two of which are ranges as shown below.

data:

Year   rate   group
2012-2014   7   Other CT, White 
2015-2017   11  Other CT, White 
2018    3   Fairfield, Black    
2018    2   Fairfield, Hispanic
Run Code Online (Sandbox Code Playgroud)

here's an example of the code for the ggplot that I'd like to animate

data %>% ggplot(aes(y = rate, x = group)) +
  geom_col() +
  coord_flip() …
Run Code Online (Sandbox Code Playgroud)

r ggplot2 gganimate

0
推荐指数
1
解决办法
173
查看次数

标签 统计

gganimate ×1

ggplot2 ×1

r ×1