Simple linear edge width scaling used by sn_edges() when width="weight". For the full-featured version with multiple modes and cut parameter, see scale_edge_widths() in scale-constants.R.
scale_edge_widths_simple(values, range = c(0.5, 3), maximum = NULL)Scaled width values.
Numeric values to scale.
Target width range (min, max).
Optional maximum value for scaling. If provided, this value maps to the max of range, and values above it are capped.