| group.colors {sampleInfo} | R Documentation |
group.colors(sampleinfo,
colorSet = NULL);
the colors of the color set will be assigned to the sample groups in a loop manner, so that the color set is not required to have the same size as the sample group numbers.
this api can be used as a property setter in R# environment: the color of each sample group can be overwritten via the value assign syntax:
group.colors(samples) <- "Set1:c8";
this function returns a tuple list of the color of each sample group when the colorSet parameter is not specified(the slot key of the list is the sample group label and the slot value is the html color code of the corresponding sample group), otherwise the input sample information collection that the color of each sample group has been modified will be returned.