Learn R Programming

oce (version 0.9-17)

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=c("S", "C", "conductivity mS/cm", "conductivity S/m",
  "T", "theta", "sigmaTheta",
  "conservative temperature", "absolute salinity",
  "nitrate", "nitrite", "oxygen", "phosphate", "silicate",
  "tritium", "spice", "fluorescence",
  "p", "z",
  "distance", "distance km", "along-track distance km",
  "heading", "pitch", "roll",
  "u", "v", "w", "speed", "direction",
  "eastward", "northward", "depth", "elevation",
  "latitude", "longitude",
  "frequency cph", "spectral density m2/cph"),
               axis=c("x", "y"))

Arguments

item
code for the label.
axis
which axis to use.

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 "(".

Details

Used by e.g. plot.ctd.