Asp: Get Aspect Ratio of the Current Plot

Description Usage Details Author(s) Examples

View source: R/DescTools.r

Description

Returns the aspect ratio of the current plot in user coordinates.

Usage

1
Asp()

Details

The aspect ratio of the plot is calculated as

1
2
3
w   <- par("pin")[1] / diff(par("usr")[1:2])
h   <- par("pin")[2] / diff(par("usr")[3:4])
asp <- w/h

Author(s)

Andri Signorell <andri@signorell.net>

Examples

1
Asp()

AndriSignorell/DescTools documentation built on April 8, 2021, 5:51 a.m.