View source: R/functions_processingQC.R
colorsByFactor | R Documentation |
This function (from functions_processing) creates a list with two elements: a vector of colors, one for each array and a vector of one representative color for each group within the experiment, for use in legends. The colors are based on groups present in the dataset (as provided by the user in experimentFactor). If there is only one group, colors are chosen randomly over the rainbow palette. Otherwise arrays belonging to the same group get different shades of a similar color.
colorsByFactor(experimentFactor)
experimentFactor |
(Status: required) The factor of groups (datatype: factor) |
A list with two fields: plotColors contains a vector of colors, one for each array; legendColors contains a representative color for each group, for use in legends (datatype: list)
#By default, the script will call:
#colList <- colorsByFactor(experimentFactor)
#plotColors <- colList$plotColors
#legendColors <- colList$legendColors
#rm(colList)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.