toFig: Convert coordinates

View source: R/toFig.R

toFigR Documentation

Convert coordinates

Description

Convert user coordinates to figure region coordinates and conversely.

Usage

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 graphics::plot.new() has been called.

Functions

  • toFig(): Convert figure region coordinates into user coordinates.

  • toUser(): Convert user coordinates into figure region coordinates.


KevCaz/graphicsutils documentation built on Sept. 16, 2022, 10:05 a.m.