assignColours: Assigns colours to samples in groups

Description Usage Arguments Value Examples

View source: R/assignColours.R

Description

Assigns colours to samples in groups for plotting

Usage

1
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

1
2
3
4
5
6
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)

qPLEXanalyzer documentation built on Feb. 3, 2021, 2:01 a.m.