Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

inch2coords

Convert device position (inch) to coordinates in current plot region.


Description

Convert device position (inch) to coordinates in current plot region.

Usage

inch2coords(xpos, ypos = NULL, simplify = FALSE)

Arguments

xpos

x position in device, inches between position and left side of device. When defined as two-number vector, x- and y-position as measured from bottomleft corner of device.

ypos

y position (in inches) from bottom of device.

simplify

Logical: whether or not to output a vector instead of a list.

Value

list or 2-number vector

See Also


plotfunctions

Various Functions to Facilitate Visualization of Data and Analysis

v1.4
GPL (>= 2)
Authors
Jacolien van Rij [aut, cre]
Initial release
2020-04-30

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.