Is there a way to exclude geom_point() from been animated in gganimate::transition_reveal()?

I want geom_point() to be treated by gganimate::transition_reveal() as a non-path/polygon layer, for highlithing some data points, is there a way? @thomasp85

library(ggplot2)
library(gganimate)
library(dplyr)
       
airquality %>%
       filter(Month == 5) %>%
       ggplot(aes(Day, Temp, group = 1)) +
       geom_line() +
       geom_point(data = airquality %>% filter(Temp < 60), color = 'red') + 
       transition_reveal(1, Day) +
       NULL

Created on 2018-09-19 by the reprex package (v0.2.1)

In general for transitions, the paradigm is that layers with data where transition params (here ìd, andalong`) are not present will remain fixed - this is the same approach used in facets...

2 Likes