Learn R Programming

sfsmisc (version 0.9-4)

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)

Arguments

unit
length of unit (or x and y units) of symbol coordinates in cm.
relsysize
same, as a proportion of the plotting area.

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.

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