[ top | up ]

Graphical Units

Usage

xinch(x=1)
yinch(x=1)

Description

xinch and yinch convert the specified number of inches given as their arguments into the correct units for plotting with graphics functions.

Examples

# plot labels offset 0.2 inches to the right
# of plotted symbols in a plot
data(mtcars)
attach(mtcars)
plot(mpg, disp, pch=19)
text(mpg + xinch(0.12), disp, rownames(mtcars),adj=0, cex = .6, col='blue')
detach(mtcars)