PadRange: Expand limits by some amount or proportionally to their...

Description Usage Arguments Examples

View source: R/utilities.R

Description

PadRange Takes limits and expands them by some amount or proportionally to their difference.

Usage

1
PadRange(limits, delta = diffMult * diff(limits), diffMult = 0.05)

Arguments

limits

A vector of length 2, an initial range, to be expanded.

delta

An amount to add(subtract) from the upper(lower) limit.

diffMult

A fraction of the passed range (limits) to use as delta.

Examples

1
2
3
PadRange(c(0,100))
PadRange(c(0,100), delta=.1)
PadRange(c(0,100), diffMult=.1)

mccreigh/rwrfhydro documentation built on May 12, 2018, 3:08 a.m.