Skip to contents

Main function

scale_y_ratio() scale_x_ratio()
Ratio-based position scales for continuous data (x & y)

Transformations

divMult_trans()
Natural log transformation... providing breaks on the "divMult" scale
nel_trans()
Natural log transformation... providing breaks on the "nel" scale
propDiff_trans()
Natural log transformation... showing proportional change explicitly

Breaking

breaks_divMult()
Compute breaks for ratio scale
limit_breaks()
Truncate log-scaled axis breaks to data range
split_decades()
Split stingy limit_breaks into three parts per complete decade
limitimil()
Expand limits for symmetry on log scale

Labels

label_centiNel()
100x Natural log (centinel) transformation of breaks
label_divMult()
Ratio labels
label_nel()
Natural log (nel) transformation of breaks
label_percDiff()
Scale breakpoints based on percentage difference from reference
label_propDiff()
Scale breakpoints based on percentage difference from reference

Convenience Functions

rel_start()
Rescale variables to start values by group

Data

admit
Opportunity Insights data from Chetty et al. 2023 Selective Colleges published 24 July 2023 by the NYT upshot
exch
USD-CAD exchange rate in first two COVID pandemic years
nel_vid
NY Times COVID case data for mid-Atlantic USA in first two pandemic years, with additional columns
rockfish
Rockfish catch by region and vessel type
ushs
US home values by region
vid
NY Times COVID case data for mid-Atlantic USA in first two pandemic years