为什么在使用 gganimate() 时会出现一些断断续续的颜色(绿色)?

Why is there some intermittent colour (green) when using gganimate()?

我在 Rstudio 上安装了 gganimate 并遵循了他们 vignette:

上的示例
library(ggplot2)
library(gganimate)
library(gapminder)

ggplot(gapminder, aes(gdpPercap, lifeExp, size = pop, colour = country)) +
     geom_point(alpha = 0.7, show.legend = FALSE) +
     scale_colour_manual(values = country_colors) +
     scale_size(range = c(2, 12)) +
     scale_x_log10() +
     facet_wrap(~continent) +
     # Here comes the gganimate specific bits
     labs(title = 'Year: {frame_time}', x = 'GDP per capita', y = 'life expectancy') +
     transition_time(year) +
     ease_aes('linear')

但是,在渲染动画时,它会显示断断续续的绿色光点,让人无法分辨发生了什么。我明白这不是 gganimate 的问题,而是渲染过程的问题。当然,我不知道还能做什么。

在这个link中创建了动画

platform       x86_64-apple-darwin17.0     
arch           x86_64                      
os             darwin17.0                  
system         x86_64, darwin17.0          
status                                     
major          4                           
minor          0.4                         
year           2021                        
month          02                          
day            15                          
svn rev        80002                       
language       R                           
version.string R version 4.0.4 (2021-02-15)
nickname       Lost Library Book

       

试试这个:animate(anim, renderer = magick_renderer())