Description Usage Arguments Value Author(s) See Also Examples
Assigns one color to each sample in the CAGEset object. These colors are used in various plots and exported tracks to consistently represent corresponding samples.
1 |
object |
A |
colors |
A character vector of valid color names. For a complete list of valid color names see colors(). Alternatively, it can be a character vector of colors specified in hexadecimal format (e.g. "#FF0000" for red). Number of provided colors must match the number of samples in the CAGEset object. Provided colors are assigned to samples according to their ordering in the CAGEset object, i.e in the order they are returned by |
Assigns one color to each sample in the CAGEset object by setting them as a name attribute of the sampleLabels
slot.
Vanja Haberle
1 2 3 4 | load(system.file("data", "exampleCAGEset.RData", package="CAGEr"))
setColors(exampleCAGEset, colors = c("darkred", "navy", "forestgreen"))
sampleLabels(exampleCAGEset)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.