seq_ease | R Documentation |
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")
x1 , x2 |
The start and end values of the sequence. Default: 0, 1 |
n |
Number of steps for the transition (including the endpoints) |
type |
Type of motion easing. Default: 'cubic'. Valid values are are 'sine', 'quad', 'cubic', 'quart', 'quint', 'exp', 'circle', 'back', 'elastic', 'linear'. |
direction |
When should the easing apply? Default: "in-out". Valid values are 'in', 'out', in-out'. Default: 'in-out' |
Numeric vector of length n
x <- seq_ease(x1 = 0, x2 = 1, n = 20, type = 'cubic', direction = 'in-out')
x
plot(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.