
Last chance! 50% off unlimited learning
Sale ends in
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.
LineToUser(line, side)
the user coordinates for the given lines
the number of lines
the side of the plot
Andri Signorell <andri@signorell.net>
For the LineToUser
function to work, there must be an open plot.
plot(1:10)
LineToUser(line=2, side=4)
Run the code above in your browser using DataLab