formatScientificMinimumDigits: Function factory to be used to specify the minimum number of...

View source: R/graphicR.R

formatScientificMinimumDigitsR Documentation

Function factory to be used to specify the minimum number of digits to be used in numbers when using scientific notation

Description

Function factory to be used to specify the minimum number of digits to be used in numbers when using scientific notation

Usage

formatScientificMinimumDigits(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 in scientific format with the set number of digits (see ?formatC 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.