plot_height: Get figure height in inches for number of elements on y axis.

View source: R/helpers_rmd.R

plot_heightR Documentation

Get figure height in inches for number of elements on y axis.

Description

Helper function to calculate figure height based on number of elements to plot for automating sizes of figures in knited reports.

Usage

plot_height(x)

Arguments

x

(numeric) number of elements to fit onto height axis

Value

(numeric) In inches

Examples

plot_height(20)


valenlab/amplican documentation built on Jan. 28, 2024, 5:10 a.m.