fig_scale: Scale dimensions to fit maximum space available given desired...

View source: R/fig_scale.R

fig_scaleR Documentation

Scale dimensions to fit maximum space available given desired aspect ratio

Description

For simplicity, the maximum dimensions are specified by journal.

Usage

fig_scale(ratio, journal = c("plos", "pnas"))

Arguments

ratio

The desired figure aspect ratio, as width/height.

journal

String specifying journal of interest.

Value

The length-2 vector with final width and height, in that order.

See Also

fig_width(), fig_height().

Examples

fig_scale( 1, 'plos' )


OchoaLab/ochoalabtools documentation built on July 28, 2024, 12:37 p.m.