-
Notifications
You must be signed in to change notification settings - Fork 165
Description
I am trying to use gganimate on a set of three plots that have been combined using patchwork. Basically, these are simple scatter+line plots, that have three different y values (y1, y2, y3) for the same x (distance along a road). I am trying to combine them using patchwork p1/p2/p3 so that they are in three rows. My idea is to animate the lines so that one would get a feeling that we are driving down the road (remember x is distance along a road), and here are the variations in y1, y2, and y3 we see. I can make it work if i plot y1, y2 and y3 on the same plot. But that is not desirable as the scales have to be different. I cannot make the gganimate to work on a p4<-p1/p2/p3. Can someone please help? I am quite new to R, so may be asking some "simplistic" questions.
Thank you very much
deb