setColors: Set colors for samples

Description Usage Arguments Value Author(s) See Also Examples

Description

Assigns one color to each sample in the CAGEr object. These colors are used in various plots and exported tracks to consistently represent corresponding samples.

Usage

1
2
3
4
setColors(object, colors = NULL)

## S4 method for signature 'CAGEr'
setColors(object, colors = NULL)

Arguments

object

A CAGEr object.

colors

A character vector of one valid R color specification per sample (see col2rgb for details). Provided colors are assigned to samples in the order they are returned by the sampleLabels function.

Value

Assigns one color to each sample in the CAGEr object and modifies it in place.

Author(s)

Vanja Haberle

See Also

Other CAGEr setter methods: genomeName, inputFilesType, inputFiles, sampleLabels

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11

CAGEr documentation built on Jan. 17, 2021, 2 a.m.