library(googleVis)head(Fruits,3)## Fruit Year Location Sales Expenses Profit Date## 1 Apples 2008 West 98 78 20 2008-12-31## 2 Apples 2009 West 111 79 32 2009-12-31## 3 Apples 2010 West 89 76 13 2010-12-31library(ggplot2)library(gganimate)Fruits_a<-ggplot(Fruits,aes(x=Sales,y=Expenses,size=Profit,color=Fruit,frame=Year))+geom_point()+geom_path(aes(cumulative=TRUE,group=Fruit))+facet_wrap(~Fruit)Fruits_a