[ top | up ]
Graphical Units
Syntax
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)
text(mpg + xinch(0.15), disp, rownames(mtcars),adj=0, cex = .6, col='blue')
detach(mtcars)