0

I installed gganimate packages from CRAN and run the sample codes provided:

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')

But got the following error:

Error in UseMethod("conditionCall") : no applicable method for 'conditionCall' applied to an object of class "NULL"

I've already installed magick, so could figure it our what's going on here. Any suggestions will be appreciated.

Z.Lin
  • 28,055
  • 6
  • 54
  • 94
user2236600
  • 157
  • 10

0 Answers0