Skip to contents

Generate axis labels for different log-fold change on different log bases.

Usage

FC_name(
  name = "Abundance%unit",
  log.base = FALSE,
  format = getOption("photobiology.math", default = "R.expression")
)

Arguments

name

character The axis-label or name of the scale.

log.base

integer The base used for the logarithm transformation.

format

character string, "R", "R.expression", "R.character", or "LaTeX".

Value

a character string or an R expression.

Examples


FC_name()
#> plain("Abundance") ~ ~(plain("fold change"))
FC_name(format = "R.expression")
#> plain("Abundance") ~ ~(plain("fold change"))
FC_name(format = "LaTeX")
#> [1] "Abundance (fold change)"
FC_name(name = "Metabolite concentration")
#> [1] "Metabolite concentration"
FC_name(log.base = 10)
#> plain("Abundance") ~ ~(log[10L] ~ ~plain("fold change"))
FC_name(log.base = 0)
#> plain("Abundance") ~ ~(plain("fold change"))