limitsFun {qAnalyst}R Documentation

Internal function to determine y-axis limits

Description

limitsFun receives the vector or list of points to be plotted and returns a two elements vector containing the lower and upper limits y-axis limits.

Usage

limitsFun(list)

Arguments

list

a vector or list of points.

Details

limitsFun unlists the input, if it is a list. The limits range given in output is 1.05 times the range between the points given in input.

Value

limitsFun returns a two elements vector containing the lower and the upper limits.

Note

limitsFun is used by plot.spc

Author(s)

Andrea Spano'

References

limitsFun is an internal function

See Also

spc

Examples

##simple example
x=c(2,5,8,4,7)
limits=limitsFun(x)
limits
# 1.7 8.3

[Package qAnalyst version 0.6.4 Index]