grapes-expanded_by-grapes: Expand a range

%expanded_by%R Documentation

Expand a range

Description

This function expands ranges by some value. Used in my dissertation code for axis ranges.

Usage

range %expanded_by% expansion

Arguments

range

A numeric vector. The highest and lowest values will be used as the range.

expansion

A number. This number will be added to the highest and subtracted from the lowest values of the range

Value

A list of length 2

Examples

c(1,5) %expanded_by% 1

JoeyStanley/joeyr documentation built on April 7, 2023, 8:37 p.m.