powered by
Convert bin cuts to interval legend labels.
bin_cuts_to_interval_labels(bin_cuts, label_digits = NULL, right_closed = TRUE)
A numeric vector of bin cuts from which to create a vector of legend labels.
The number of decimal places to round labels to.
TRUE or FALSE of whether bins or quantiles are to be cut right-closed. Defaults to TRUE.
A vector of labels.
# NOT RUN { bin_cuts_to_interval_labels(c(0, 0.1, 3, 4.1, 7, 100, Inf)) # }
Run the code above in your browser using DataLab