Learn R Programming

simplevis (version 5.0.0)

sv_interval_labels_num: 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, digits = NULL, right_closed = TRUE)

Arguments

cuts

A vector of numeric cuts.

digits

If cuts are numeric, the number of decimal places to round labels to.

right_closed

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

Value

A vector of character labels.