For example, a 45% Democratic vote share becomes "R+10" or "55% R".
Usage
label_party_margin(midpoint = 0.5, reverse = FALSE, accuracy = 1)
label_party_pct(midpoint = 0.5, reverse = FALSE, accuracy = 1)
Arguments
- midpoint
Either 0.5, the default, or 0. For
label_party_margin()
, if zero, scale will not be doubled (0.05 becomes "D+5" withmidpoint=0
, while 0.55 becomes "D+10" with `midpoint=0.5)- reverse
If
TRUE
, reverse "D" and "R".- accuracy
As with scales::number_format