Learn R Programming

DescTools (version 0.99.54)

LineToUser: Convert Line Coordinates To User Coordinates

Description

Functions like mtext or axis use the line argument to set the distance from plot. Sometimes it's useful to have the distance in user coordinates. LineToUser() does this nontrivial conversion.

Usage

LineToUser(line, side)

Value

the user coordinates for the given lines

Arguments

line

the number of lines

side

the side of the plot

Author

Andri Signorell <andri@signorell.net>

Details

For the LineToUser function to work, there must be an open plot.

See Also

Examples

Run this code
plot(1:10)
LineToUser(line=2, side=4)

Run the code above in your browser using DataLab