aspectRatio {timeLineGraphics}R Documentation

aspectRatio

Description

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

Usage

aspectRatio(rim)

Arguments

rim

is rasterized version of im

Value

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

Examples

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

[Package timeLineGraphics version 1.0 Index]