Description Usage Arguments Value Examples
Expand a range with multiplicative or additive constant. This function has two tasks. First it needs to integrate the limits given to the coordinate system with the limits from the scale system.
1 2 3 4 | vec_expand_limits(limits, expand = expansion(0, 0), coord_limits = NULL)
## S3 method for class 'numeric'
vec_expand_limits(limits, expand = expansion(0, 0), coord_limits = NULL)
|
limits |
A vector indicating limits from the scale system. |
expand |
The result of calling |
coord_limits |
A vector indicating limits from the coord system. |
A vector with expanded limits
1 | vec_expand_limits(c(0, 1), expansion(1), NULL)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.