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

View source: R/graphicR.R

formatScientificDigitsR Documentation

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

Description

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

Usage

formatScientificDigits(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 ?scales::lebel_scientific 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.