Used for adjusting layout of plotly plot based on selected
groups in group_selector_table
; currently used in viz tab
calc_limits_per_groups(dframe, group_index, xvar, yvar, scaling = 0.02)
dataframe/tibble, grouped/ungrouped
numeric, group indices for which to return lims
character, name of x var for plot (must exist in dframe)
character, name of y var for plot (must exist in dframe)
numeric, 1 +/- scaling
times limits
list with xlim and ylim