Skip to contents

The numbers of the ticks of an axis: in full under 10,000, such as 0, 2,500 and 5,000, and compact from there, such as 0, 10K and 20K.

Usage

fmt_axis(x)

Arguments

x

The numbers of the ticks.

Value

A character vector.

Examples

rghcard:::fmt_axis(c(0, 2500, 5000))
#> [1] "0"     "2,500" "5,000"
rghcard:::fmt_axis(c(0, 10000, 20000))
#> [1] "0"   "10K" "20K"