This function produces an expression to label plots from expressions for variables and units and from character strings.
get.label(var.name, labels = NA, units = NA, t1 = "", t2 = "", t3 = "")expression of a label of the form: t1 label t2 [unit] t3
label and unit are extracted from the vectors labels and units
by using the compontents named var.name
name of the variable.
named vector of expressions encoding variable names with greek letters, sub- and superscripts.
named vector of expressions encoding units with sub- and superscripts.
optional text (see below).
optional text (see below).
optional text (see below).