How to get rid of axis flickering caused by coord_flip when using gganimate and view_follow and geom_tile?
问题 Let's say we have this bar chart race with a scaling x-axis . Taking the code exactly from this answer by @Jon Spring and adding the very final line (before the animate line): library(tidyverse) library(gganimate) library(gapminder) theme_set(theme_classic()) gap <- gapminder %>% filter(continent == "Asia") %>% group_by(year) %>% # The * 1 makes it possible to have non-integer ranks while sliding mutate(rank = min_rank(-gdpPercap) * 1) %>% ungroup() p <- ggplot(gap, aes(rank, group = country,