widen: Widen an interval by a relative amount

Description Usage Arguments

View source: R/plot.R

Description

This can be useful while specifying the x/y limits for a plot

Usage

1
widen(interval, by = c(0.05, 0.05), log = FALSE)

Arguments

interval

numeric vector of length 2

by

numeric vector of length 2, percentage widening on each side of the interval

log

boolean, if TRUE, widen so that "by" percentage is perceived on a logarithmic scale


tkonopka/shrt documentation built on March 5, 2020, 2:51 p.m.