Convert user coordinates to figure region coordinates and conversely.

toFig(x, y = NULL)

toUser(x, y = NULL)

Arguments

x

the x coordinates of a set of points. Alternatively, a single argument x can be provided.

y

the y coordinates of a set of points.

Details

These functions can be used anytime, however, there are useful only once plot.new has been called.

Functions

  • toFig: Convert figure region coordinates into user coordinates.

  • toUser: Convert user coordinates into figure region coordinates.