geom3lmargin: adds some padding to a range

Description Usage Arguments Value Examples

View source: R/f0.rbsb1.code.r

Description

Used for the preparation of graphic outputs: the range of x is extended with a proportion ma at both ends when diff(range(x)) is not nought, else of pro*x[1].

Usage

1
geom3lmargin(x, ma=0.15, pro=0.10)

Arguments

x

vector of values to consider

ma

proportion margin to add from the range of value.

pro

proportion margin to add from the range of values when the range is of lenght zero.

Value

A vector of two numerical giving the extended range

Examples

1
2
 geom3lmargin(1:5);
 geom3lmargin(1:5, 0.1);

rbsb documentation built on May 31, 2017, 1:45 a.m.