Compute a widget height from the number of y-axis groups
Source:R/utils-fig_size.R
calc_fig_size.RdConvenience helper for HTML widgets (e.g., Plotly) that converts a count of
categories/rows into a pixel height. The function returns the larger of
base and per * n_rows, which keeps small plots readable while allowing
tall plots when many groups are shown.