Не могу вызвать функцию gganimate - PullRequest
0 голосов
/ 11 февраля 2019

Я установил gganimate пакеты из CRAN и запустил предоставленные образцы кодов:

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

Но получил следующую ошибку:

Ошибка в UseMethod ("conditionCall"): нет применимого метода для 'conditionCall', примененного к объекту класса "NULL"

Я уже установил магию, поэтому можно понять, что здесь происходит.Любые предложения будут оценены.

...