Hi,
I'm trying to animate my plot but I'm getting an error. MAy some one assist please?
Indiana_cost <- tidy_tuition %>%
filter(State == "Indiana")
ggplot(Indiana_cost,aes(x=year,y=cost)) +geom_line(color="deeppink1", size=1) +theme(text = element_text(size = 18)) # text size
Indiana_cost+transition_reveal(year)
#> Warning: Incompatible methods ("Ops.data.frame", "+.gg") for "+"
Error in Indiana_cost + transition_reveal(year) :
non-numeric argument to binary operator
Created on 2022-04-25 by the reprex package (v2.0.1)