labels<- | R Documentation |
value
may be a list or vector of labels giving the new label for
each of the entries specified by which
.The names of the labels are the same as the colnames of the
data.frame
. The label for the wavelength axis has the name
.wavelength
.
labels (object, which = NULL, ...) <- value
## S4 method for signature 'hyperSpec'
labels(object, which = bquote(), drop = TRUE, ..., use.colnames = TRUE)
object |
a hyperSpec object |
which |
numeric or character to specify the label(s) |
... |
ignored |
value |
the new label(s) |
drop |
if the result would be a list with only one element, should the element be returned instead? |
use.colnames |
should missing labels be replaced by column names of the extra data? |
The labels should be given in a form ready for the text-drawing functions
(see plotmath
), e.g. as expression
or a
character
.
labels<-
returns a hyperSpec
object.
labels
returns a list of labels. If drop
is
TRUE
and the list contains only one element, the element is
returned instead.
C. Beleites
labels
labels (flu, "c") <- expression ("/" ("c", "mg / l"))
labels (chondro)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.