Closed osiris08 closed 3 years ago
I just found this same problem using transition_reveal(x)
with geom_step
and geom_point
. With an unordered dataframe my animation had multiple points plotted in every frame, and the step path had a weird tail. Ordering the dataframe by my x
column solved everything. Did I just miss this in the documentation or is it not stated?
In order to reveal lines with correct
geom_text
label,transition_reveal
needs the table to be ordered to work. In the following example, I shuffled the data, and it cannot show labels correctly.It's very often data comes in with shuffled order, and it's difficult to know this assumption.