assignColours {qPLEXanalyzer} | R Documentation

## Assigns colours to samples in groups

### Description

Assigns colours to samples in groups for plotting

### Usage

    assignColours(MSnSetObj, colourBy="SampleGroup")

### Arguments

`MSnSetObj` | MSnSet; an object of class MSnSet
`colourBy` | character: column name from pData(MSnSetObj) to use for coloring samples

### Value

A character vector of colors for samples.

### Examples

    data(human_anno)
    data(exp3_OHT_ESR1)
    MSnSet_data <- convertToMSnset(exp3_OHT_ESR1$intensities_qPLEX1,
    metadata=exp3_OHT_ESR1$metadata_qPLEX1,
    indExpData=c(7:16), Sequences=2, Accessions=6)
    sampleColours <- assignColours(MSnSet_data)

[Package qPLEXanalyzer version 1.4.0 Index]