aspect_ratio: Compute Aspect Ratio

Description Usage Arguments Details Author(s)

View source: R/vector.R

Description

Compute aspect ratio of images (and potentially/eventually other graphical objects).

Usage

1
aspect_ratio(object, ...)

Arguments

object

Object to compute as

...

Additional arguments to methods, all ignored

Details

This is how much wider a thing is than its height. So an object with width "w" and height "h" has aspect ratio of w/h,or (w/h):1. If it is wider than it is high, then the aspect ratio is greater than one.

This works for raster images as well as vector images (despite the package name).

Author(s)

Rich FitzJohn


richfitz/vectoR documentation built on May 27, 2019, 8:43 a.m.