animint
animint copied to clipboard
animation API
It'd be nice if there was more consistency between the time
/duration
options. For example:
d <- data.frame(
x = 1:10,
y = 1:10,
z = 1:10
)
plotList <- list(
plot = ggplot() + geom_point(
data = d, aes(x, y, showSelected = z)
),
time = list(variable = "z", ms = 1000),
duration = list(z = 1000)
)
Is there any reason why we couldn't also support time = list(z = 1000)
?
Also, would it be easy to support non-linear easing? https://github.com/mbostock/d3/wiki/Transitions#ease
sure both of those ideas sound great
however I think it would be better to continue to support the current syntax for the time option,
and instead introduce a new option e.g. animation=list(z=1000)
i'm open to proposals / PRs to support different easing functions, go ahead an propose a syntax and implementation if you want
although easing functions may be difficult to test...