getPaletteForLabels {DAPAR} | R Documentation

## 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`

### Author(s)

Florence Combes, Samuel Wieczorek

### Examples

    require(DAPARdata)
    data(Exp1_R25_pept)
    labels <- Biobase::pData(Exp1_R25_pept)[,"Label"]
    getPaletteForLabels(labels)

[Package DAPAR version 1.10.4 Index]