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

Asp()

Details

The aspect ratio of the plot is calculated as


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

Author

Andri Signorell <[email protected]>

Examples

Asp()
#> [1] 1.124309