Learn R Programming

oce (version 0.9-18)

resizableLabel: Provide axis names in adjustable sizes

Description

Provide axis names in adjustable sizes, e.g. using T instead of Temperature, and including units as appropriate.

Usage

resizableLabel(item, axis, sep, unit=NULL)

Arguments

item
code for the label. This must be an element from the following list, or an abbreviation that uniquely identifies an element through its first letters: "S", "C", "conductivity mS/cm", "conductivity
axis
a string indicating which axis to use; must be x or y.
sep
optional character string inserted between the unit and the parentheses or brackets that enclose it. If not provided, then getOption("oceUnitSep") is checked. If that exists, then it is used a
unit
optional unit to use, an expression (ignored at present)

Value

  • A character string or expression, in either a long or a shorter format, for use in the indicated axis at the present plot size. Whether the unit is enclosed in parentheses or square brackets is determined by the value of getOption("oceUnitBracket"), which may be "[" or "(". Whether spaces are used between the unit and these deliminators is set by psep or getOption("oceUnitSep").

Details

Used by e.g. plot.ctd.