Learn R Programming

plotfunctions (version 1.4)

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

Other Utility functions: findAbsMin(), find_n_neighbors(), firstLetterCap(), getArrowPos(), getDec(), getRange(), getRatioCoords(), get_palette(), group_sort(), isColor(), list2str(), move_n_point(), orderBoxplot(), se(), sortGroups()