`xinch`

and `yinch`

convert the specified number of inches
given as their arguments into the correct units for plotting with
graphics functions. Usually, this only makes sense when normal
coordinates are used, i.e., *no* `log`

scale (see the
`log`

argument to `par`

).

`xyinch`

does the same for a pair of numbers `xy`

,
simultaneously.

1 2 3 |

`x, y` |
numeric vector |

`xy` |
numeric of length 1 or 2. |

`warn.log` |
logical; if |

1 2 3 4 5 6 7 8 9 10 11 | ```
all(c(xinch(), yinch()) == xyinch()) # TRUE
xyinch()
xyinch #- to see that is really delta{"usr"} / "pin"
## plot labels offset 0.12 inches to the right
## of plotted symbols in a plot
with(mtcars, {
plot(mpg, disp, pch = 19, main = "Motor Trend Cars")
text(mpg + xinch(0.12), disp, row.names(mtcars),
adj = 0, cex = .7, col = "blue")
})
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.