Learn R Programming

sfsmisc (version 1.1-19)

p.scales: Conversion between plotting scales: usr, cm, symbol

Description

Give scale conversion factors of three coordinate systems in use for traditional R graphics: use, cm, symbol.

Usage

p.scales(unit = relsysize * 2.54 * min(pin), relsysize = 0.05)

Value

A numeric 2x2 matrix, with rows named x and y, and columns, named "sy2usr" and "usr2cm" which give the scale conversion factors from ‘symbol’ (as given) to

‘usr’ coordinates and from these to ‘cm’, respectively.

Arguments

unit

length of unit (or x and y units) of symbol coordinates in cm.

relsysize

same, as a proportion of the plotting area.

Author

Werner Stahel, 1990; simplification: M.Maechler, 1993, 2004

See Also

par("usr"), of also ("pin") on which this is based.

Examples

Run this code
p.scales()

Run the code above in your browser using DataLab