Description Usage Arguments Value Examples
View source: R/assignColours.R
Assigns colours to samples in groups for plotting
1 | assignColours(MSnSetObj, colourBy = "SampleGroup")
|
MSnSetObj |
MSnSet; an object of class MSnSet |
colourBy |
character: column name from pData(MSnSetObj) to use for coloring samples |
A character vector of colors for samples.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.