makeLabel: Make a plot axis or legend label out of a character string

makeLabelR Documentation

Make a plot axis or legend label out of a character string

Description

Doesn't modify strings already containing a space or multi-letter acronym.

Usage

makeLabel(object, ...)

## S4 method for signature 'character'
makeLabel(object)

Arguments

object

Object.

...

Additional arguments.

Value

character(1). Lowercase string.

Note

Updated 2020-01-27.

See Also

  • makeWords().

  • stringr::str_to_lower()

Examples

makeLabel("mitoVsCoding")
makeLabel("log10GenesPerUMI")
makeLabel("Already A Label")
makeLabel("NASA")
makeLabel("nGene")

acidgenomics/r-syntactic documentation built on Oct. 30, 2023, 3:08 a.m.