formatDigits: Function factory to be used to specify the number of digits...

View source: R/graphicR.R

formatDigitsR Documentation

Function factory to be used to specify the number of digits to be used in numbers

Description

Function factory to be used to specify the number of digits to be used in numbers

Usage

formatDigits(digits)

Arguments

digits

integer value that specifies the number of digits to be used by the resulting function

Value

a function that will take a numeric vector as an argument and returns a character vector of the numeric vector with the set number of digits (see ?scales::lebel_number for more info)

Note

this is more or less an example of a function to be used to specify axis-label formats with the function graphAdjust(). More complex functions are possible


BenBruyneel/BBPersonalR documentation built on Aug. 23, 2024, 8:28 p.m.