group.colors {sampleInfo} R Documentation

get/set the group colors

Description

Usage

group.colors(sampleinfo,
    colorSet = NULL);

Arguments

sampleinfo

a vector of the @T:SMRUCC.genomics.GCModeller.Workbench.ExperimentDesigner.SampleInfo. [as SampleInfo]

colorSet

a new color set for assign to each sample group, which can be a character vector of the html color code or the color palette name, the Paper color set will be used if this color set parameter can not be recognized.

env

[as Environment]

Details

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";

Authors

phenotype_kit

Value

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.

clr value class

Examples


[Package sampleInfo version 1.0.0.0 Index]