Learn R Programming

timeLineGraphics (version 1.0)

aspectRatio: aspectRatio

Description

compute ratio needed for maintaining proper aspect ratio in graph overlay image

Usage

aspectRatio(rim)

Value

numerical ratio needed for maintaining proper aspect ratio in graph overlay image

Arguments

rim

is rasterized version of im

Examples

Run this code
aspectRatio(as.raster(magick::image_read(example2()[[1]]$pics[[1]])))

Run the code above in your browser using DataLab