usr2in: Conversion functions for plotting

Description Usage Arguments Value

Description

Convert user coordinates to inch-based cordinates for the open display, and back again

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
usr2in(x, ...)

## S4 method for signature 'numeric'
usr2in(
  x,
  y,
  usr = par("usr"),
  pin = par("pin"),
  xlog = par("xlog"),
  ylog = par("ylog"),
  ...
)

## S4 method for signature 'xy'
usr2in(x, ...)

in2usr(x, ...)

## S4 method for signature 'numeric'
in2usr(
  x,
  y,
  usr = par("usr"),
  pin = par("pin"),
  xlog = par("xlog"),
  ylog = par("ylog"),
  ...
)

## S4 method for signature 'xy'
in2usr(x, ...)

Arguments

x, y

any of the forms that the coordinates of a scatterplot may be specified

...

additional arguments for methods

usr, pin

graphics parameters par("usr"), par("pin") (or replacements)

xlog, ylog

logicals: are the x- and/or y-scales logarithmic?

Value

a complex vector of converted coordinates


BillVenables/WWRGraphics documentation built on Feb. 1, 2021, 12:13 p.m.