Learn R Programming

plotfunctions (version 1.4)

getArrowPos: Converts coordinates in current plot region to device positions (in inch).

Description

Converts coordinates in current plot region to device positions (in inch).

Usage

getArrowPos(
  x,
  y,
  units = c("coords", "prop"),
  dev = c("plot", "figure", "panel")
)

Arguments

x

Numeric: x coordinate(s)

y

Numeric: y coordinate(s)

units

Coordinates (default) or proportions with respect to plot region.

dev

x and y position are measured with respect to the plot region (default), figure panel, or device.

Value

list

See Also

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