mm {compactr}R Documentation

Find the minimum and maximum of a vector

Description

The function mm() finds the minimum and maximum of a vector. It is intended for use with eplot() to properly scale the axes.

Usage

  mm(x)

Arguments

x

a vector

Author(s)

Carlisle Rainey (e-mail, website)

Examples

x <- rnorm(100)
y <- rnorm(100)

par(mfrow = c(1,1), mar = c(5,4,4,2), oma = c(0,0,0,0))
eplot(x, y, xlim = mm(x), ylim = mm(y))

[Package compactr version 0.1 Index]