setColors: Setting colors for samples

Description Usage Arguments Value Author(s) See Also Examples

Description

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.

Usage

1
setColors(object, colors = NULL)

Arguments

object

A CAGEset object

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 sampleLabels function.

Value

Assigns one color to each sample in the CAGEset object by setting them as a name attribute of the sampleLabels slot.

Author(s)

Vanja Haberle

See Also

sampleLabels

Examples

1
2
3
4
load(system.file("data", "exampleCAGEset.RData", package="CAGEr"))

setColors(exampleCAGEset, colors = c("darkred", "navy", "forestgreen"))
sampleLabels(exampleCAGEset)

ge11232002/CAGEr documentation built on May 17, 2019, 12:13 a.m.