calc_limits_per_groups {datacleanr} | R Documentation |
Return x and y limits of "group-subsetted" dframe
Description
Used for adjusting layout of plotly plot based on selected
groups in group_selector_table
; currently used in viz tab
Usage
calc_limits_per_groups(dframe, group_index, xvar, yvar, scaling = 0.02)
Arguments
dframe |
dataframe/tibble, grouped/ungrouped |
group_index |
numeric, group indices for which to return lims |
xvar |
character, name of x var for plot (must exist in dframe) |
yvar |
character, name of y var for plot (must exist in dframe) |
scaling |
numeric, 1 +/- |
Value
list with xlim and ylim
[Package datacleanr version 1.0.3 Index]