Learn R Programming

compactr (version 0.1)

mm: 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

Examples

Run this code
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))

Run the code above in your browser using DataLab