Closed khailper closed 3 years ago
The thinking is that transition_states()
is discrete, so while you can use numerics they are treated as character/factor
Both transition_time()
and transition_reveal()
are continuous so they use numerics
Thanks, that makes a lot of sense.
Created on 2019-07-17 by the reprex package (v0.3.0)
In my personal experience,
transitition_reveal()
also preservesframe_along
's type, which makes it simpler to do things liketitle = "helper_function(frame_var)"
, wherehelper_function
extracts summary statistics of a column other than the one you're transitioning over.For example:
to get the median ozone value on the day immediately before the interpolated value in
frame_time
.I haven't checked any other transitions to see how they handle frame variable type