setLabel.MicroarrayData: Sets the label of one field

Description Usage Arguments Author(s) See Also Examples

Description

Sets the label of one field (only). If the field does not exists the label will stored anyway under a virtual field, which could be useful to store different labels.

Usage

1
2
## S3 method for class 'MicroarrayData'
setLabel(this, field, value, ...)

Arguments

field

A field name to which the label should be assigned.

label

The new label.

Author(s)

Henrik Bengtsson (http://www.braju.com/R/)

See Also

*getLabel(). See plotmath how expressions can be used to annotate graphs. For more information see MicroarrayData.

Examples

1
2
3
4
5
  SMA$loadData("mouse.data")
  layout <- Layout$read("MouseArray.Layout.dat", path=system.file("data-ex", package="aroma"))
  raw <- RawData(mouse.data, layout=layout)
  setLabel(raw, "R", "red")
  print(getLabel(raw, "R"))

HenrikBengtsson/aroma documentation built on May 7, 2019, 12:56 a.m.