sv_interval_labels_num: Convert numeric bin cuts to simple and pretty labels.

View source: R/interval_labels.R

sv_interval_labels_numR Documentation

Convert numeric bin cuts to simple and pretty labels.

Description

Convert numeric bin cuts to simple and pretty labels.

Usage

sv_interval_labels_num(cuts, format = NULL, left_closed = TRUE)

Arguments

cuts

A vector of numeric cuts.

format

A function to apply to the numeric values, e.g. scales::label_comma().

left_closed

If cuts are numeric, TRUE or FALSE of whether intervals are to be left-closed. Defaults to TRUE.

Value

A vector of character labels.


simplevis documentation built on May 31, 2023, 7:02 p.m.