| columnSelectionColorMap | R Documentation |
Define the colormap when coloring points in a DotPlot based on their assigned multiple row/column selection.
columnSelectionColorMap(x, levels)
rowSelectionColorMap(x, levels)
x |
An ExperimentColorMap object. |
levels |
Character vector containing the available levels of a |
The "unselected" level is always assigned the grey color;
colors for all other levels are generated by colDataColorMap(x) or rowDataColorMap(x).
The "active" level is always assigned the first color from these functions, regardless of whether it is present in levels.
This aims to provide some consistency in the coloring when the selections change.
A named character vector of colors for each level in levels.
Aaron Lun
ecm <- ExperimentColorMap()
columnSelectionColorMap(ecm, c("active", "unselected"))
columnSelectionColorMap(ecm, c("active", "saved1", "unselected"))
columnSelectionColorMap(ecm, c("saved1", "unselected"))
columnSelectionColorMap(ecm, c("saved1"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.