Description Usage Arguments Value Note Author(s) Examples
View source: R/animatoR-functions-knitr.R
Interpolates a position between start and end value(s).
Homotopy is controled by a homotopy parameter t
and power parameter p
is used for interpolation.
1 |
x0 |
numeric vector of start values. |
x1 |
numeric vector of end values. |
t |
numeric, homotopy parameter, limited between 0 and 1. This parameter can be considered as fraction of animation duration time. |
when |
numeric vector. This parameter controls the times of: entrance, exit, start of movement and, end of movement. |
p |
numeric, homotopy power parameter. Defaults to 1. |
interpolated value (see Note)
Returned coordinates are determined using the homotopy function
x_t=x_0 (1-t^p)+x_1 t^p, t\in[0,1]
Andrej Blejec andrej.blejec@nib.si
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.