I'm trying to set up a simple line plot that will reveal data by year with gganimate.
First problem is, my simple line plot shows a really weird range on the y axis.
Second problem, the animation won't work. Error message reads:
Error: along data must either be integer, numeric, POSIXct, Date, difftime, orhms
In addition:
Warning message: In min(cl[cl != 0]) : no non-missing arguments to min; returning Inf"
ggplot(data = Japan_GDP3,
aes(x = Japan_GDP3$Year, y = Japan_GDP3$`Exports of Goods and Services, Nominal, Domestic Currency`,
group = 1)) +
geom_line() +
transition_reveal(Japan_GDP3$Year)