I am following a basic tutorial on gganimate:
p <- ggplot(iris, aes(x = Petal.Width, y = Petal.Length)) +
geom_point()
When I try the snippet of code below:
p + transition_states(Species,
transition_length = 2,
state_length = 1)
I get the following error:
Error in l$setup_layer(d, plot) : attempt to apply non-function
I'm guessing it's something to do with package versions but could anyone help out?
Thanks