Learn R Programming

caroline (version 0.5.0)

usr2lims: Grab and adjust the current plot dimensions

Description

This is a simple function which grabs the current plot dimentions and adjusts them by shrinking them by 4

Usage

usr2lims(adj=.04)

Arguments

adj
The automatic adjustment factor 'plot' adds to buffer the specified plot dimentions.

Value

  • A 2 item (x and y) list of 2 item (min and max) vectors for x and y limits of the current plot area

See Also

par

Examples

Run this code
plot(c(0,1), c(0,1))
usr2lims()

Run the code above in your browser using DataLab