get.label | R Documentation |
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 = "")
var.name |
name of the variable. |
labels |
named vector of expressions encoding variable names with greek letters, sub- and superscripts. |
units |
named vector of expressions encoding units with sub- and superscripts. |
t1 |
optional text (see below). |
t2 |
optional text (see below). |
t3 |
optional text (see below). |
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.