Current behavior
auto_bin() accepts outlier_color to style the outlier bin, but the outlier label is auto-generated (e.g. >1.00). There is no way to customize it.
Request
Add an outlier_label parameter so users can override the default label text. The default should remain the current auto-generated format.
Updated signature:
auto_bin(
x,
palette = "default",
bin = 6,
decimals = 2,
round_to = 50,
reverse = FALSE,
labels = NULL,
outlier_threshold = NULL,
outlier_color = "#636363",
outlier_label = NULL
)
When outlier_label = NULL (default), keep the current auto-generated label. When a string is provided, use it as the bin label.
Checklist
Current behavior
auto_bin()acceptsoutlier_colorto style the outlier bin, but the outlier label is auto-generated (e.g.>1.00). There is no way to customize it.Request
Add an
outlier_labelparameter so users can override the default label text. The default should remain the current auto-generated format.Updated signature:
When
outlier_label = NULL(default), keep the current auto-generated label. When a string is provided, use it as the bin label.Checklist
outlier_labelparameter toauto_bin()inR/auto_bin.R@param,@examples)tests/testthat/test-auto_bin.Rfor the new parameterdevtools::document()to regenerateman/andNAMESPACEdevtools::test()— all tests passdevtools::check()— no errors, warnings, or notes