convertUserToLine: Convert from user coordinates to axis line

View source: R/misc.R

convertUserToLineR Documentation

Convert from user coordinates to axis line

Description

Convert from user coordinates to axis line

Usage

convertUserToLine(usr, axis = 1)

Arguments

usr

user coordinate to convert to line

axis

axis to do conversion on (1:4 same as axis, mtext command)

Value

axis line position

Examples

plot(1:10)
mtext('Test1',1,convertUserToLine(0,1))
points(5.5,0,xpd=NA)
mtext('Test2',2,convertUserToLine(0,2))
points(0,5.5,xpd=NA)

sherrillmix/dnar documentation built on July 18, 2022, 10:07 p.m.