powered by
Create a sequence interpolating between two values with the specified non-linear easing.
seq_ease(x1 = 0, x2 = 1, n = 100, type = "cubic", direction = "in-out")
Numeric vector of length n
n
The start and end values of the sequence. Default: 0, 1
Number of steps for the transition (including the endpoints)
Type of motion easing. Default: 'cubic'. Valid values are are 'sine', 'quad', 'cubic', 'quart', 'quint', 'exp', 'circle', 'back', 'elastic', 'linear'.
When should the easing apply? Default: "in-out". Valid values are 'in', 'out', in-out'. Default: 'in-out'
x <- seq_ease(x1 = 0, x2 = 1, n = 20, type = 'cubic', direction = 'in-out') x plot(x)
Run the code above in your browser using DataLab