calc_girafe_width: Return width in inches for ggiraph::girafe() objects

View source: R/djpr_ggiraph.R

calc_girafe_widthR Documentation

Return width in inches for ggiraph::girafe() objects

Description

Return width in inches for ggiraph::girafe() objects

Usage

calc_girafe_width(width_percent, window_width, dpi = 72, max_width = 1140)

Arguments

width_percent

Percentage of the standard plotting area that should be taken up by the object

window_width

Width of the row in which the object will be placed. Given by plt_change()$width

dpi

Dots per inch

max_width

Maximum width of object in pixels


djpr-data/djprshiny documentation built on May 14, 2023, 1:15 p.m.