Get and Set Labels of a hyperSpec Object
value may be a list or vector of labels giving the new label for
each of the entries specified by which.
Usage
labels (object, which = NULL, ..., short = "labels<-", user = NULL, date = NULL) <- value
## S3 method for class 'hyperSpec':
labels(object, which = bquote (), drop = TRUE, ...,
use.colnames = TRUE)
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?
Value
labels<-: labels<- returns a hyperSpec object.
labels,hyperSpec-method: labels returns a list of labels. If drop is
TRUE and the list contains only one element, the element is
returned instead.
Details
labels,hyperSpec-method: 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.
The labels should be given in a form ready for the text-drawing functions
(see plotmath), e.g. as expression or a
character.