Learn R Programming

DAPAR (version 1.4.7)

getPaletteForLabels: Palette for plots in DAPAR

Description

Selects colors for the plots in DAPAR based on the different conditions in the dataset. The palette is derived from the brewer palette "Dark2" (see RColorBrewer).

Usage

getPaletteForLabels(labels)

Arguments

labels
A vector of labels (strings).

Value

A palette designed for the data manipulated in DAPAR

Examples

Run this code
data(UPSpep25)
labels <- Biobase::pData(UPSpep25)[,"Label"]
getPaletteForLabels(labels)

Run the code above in your browser using DataLab