| setColors {CAGEr} | R Documentation |
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.
setColors(object, colors = NULL) ## S4 method for signature 'CAGEr' setColors(object, colors = NULL)
object |
A |
colors |
A character vector of one valid R color specification per
sample (see |
Assigns one color to each sample in the CAGEr object and modifies it in place.
Vanja Haberle
Other CAGEr setter methods: genomeName,
inputFilesType, inputFiles,
sampleLabels
sampleLabels(exampleCAGEset)
setColors(exampleCAGEset, colors = c("darkred", "navy", "forestgreen"))
sampleLabels(exampleCAGEset)
sampleLabels(exampleCAGEexp)
setColors(exampleCAGEexp, 5)
sampleLabels(exampleCAGEexp)
setColors(exampleCAGEexp, c("#ff0000ff", "#CCFF00", "blue", "grey", 1))
sampleLabels(exampleCAGEexp)
setColors(exampleCAGEexp, c("red", "darkgreen", "blue", "grey", "black"))
sampleLabels(exampleCAGEexp)