ch.getPlotAxisMinMax: A function calculates the min and max values for a plot axis

ch.getPlotAxisMinMaxR Documentation

A function calculates the min and max values for a plot axis

Description

This function calculates the min and max values for a plot axis with a bit of a visual buffer.

Usage

ch.getPlotAxisMinMax(x, pBuffer = 0.1)

Arguments

variable

a numeric array from which you the axis values are derived (usually just a vector).

p(buffer)

the proportion of the axis range that you want to leave buffered on the low and the high end

Value

a vector containing the min and max values for the axis.

Examples

ch.getPlotAxisMinMax (xAxisVals)

ccpluncw/ccpl_R_chutils documentation built on Feb. 28, 2024, 1:17 a.m.