Description Usage Arguments Details Value Author(s) Examples
Functions to get/set panel colors at the user and developer level. This determines the color of the panel header as well as (for DotPlots) the color and fill of the brush.
1 2 3 | .panelColor(x)
.getPanelColor(x)
|
x |
An instance of a Panel class. |
For developers: .panelColor
is a method that should be subclassed for each Panel subclass.
This determines the color theme for all instances of that class for use in, e.g., headers and box shadings.
Developers should choose a color that is dark enough to serve as a background for white text.
We recommend defining colors as hex color codes for full compatibility with both HTML elements and R plots.
For users: by default, .getPanelColor
will return the default color of each panel as specified by the developer in .panelColor
.
However, users can override this by setting the panel.color
global option to a named character vector of colors (see Examples).
This can be used to customize the color scheme for any given call to iSEE
.
The names of the vector should be set to the name of class to be overridden; if a class is not named here, its default color is used.
A string containing the color assigned to the class of x
.
Aaron Lun
1 2 3 4 5 6 7 8 9 10 11 | rdp <- ReducedDimensionPlot()
# Default color, as specified by the developer:
.panelColor(rdp)
# Still the default color:
.getPanelColor(rdp)
# Overriding the default colors
iSEEOptions$set(panel.color=c(ReducedDimensionPlot="#1e90ff"))
.getPanelColor(rdp)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.