You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
The text was updated successfully, but these errors were encountered: