vec_expand_limits: Expand a range

Description Usage Arguments Value Examples

View source: R/limits.R

Description

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.

Usage

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)

Arguments

limits

A vector indicating limits from the scale system.

expand

The result of calling expansion.

coord_limits

A vector indicating limits from the coord system.

Value

A vector with expanded limits

Examples

1
vec_expand_limits(c(0, 1), expansion(1), NULL)

teunbrand/ggvctrcoords documentation built on Jan. 12, 2020, 6:25 p.m.