gridToDevice

0th

Percentile

Convert grid coordinates to device coordinates

This function converts a coordinate pair specifying a location in a grid viewport() in grid units to a coordinate pair specifying a location in device units relative to the lower left corner of the plotting canvas.

Keywords
Graphics, grid, Conversion, units
Usage
gridToDevice(x = 0, y = 0, units = "native")
Arguments
x

x coordinate.

y

y coordinate. If no values are given for x and y, the location of the lower-left corner of the current viewport will be calculated.

units

Character string indicating the units of x and y. See the unit() function for acceptable unit types.

Value

A tuple of coordinates in device units.

See Also

unit() viewport() convertX() convertY() current.transform()

Aliases
  • gridToDevice
Documentation reproduced from package tikzDevice, version 0.12.3.1, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.