Colors
Next example >
< Previous example
Color design of the visualization is controlled by several attributes. InCHlib uses dedicated names for color scales and for individual colors which can be given as predefined names (e.g., purple), hexadecimal values (e.g., #FC0905) or RGB values (e.g., rgb(255,255,255)).
Customizable color attributes are:
- heatmap_colors - Determines a color scale used to color heatmap data. Color scale has a predetermined number of colors which are evenly distributed between minimum and maximum data values. If independent_columns attribute is set to true, minimum and maximum values are calculated for each column separately. If independent_columns attribute is set to false, minimum and maximum values are determined from all heatmap data. This is useful if data in individual columns have similar values.
- metadata_colors - Determines a color scale of all metadata columns.
- column_metadata_colors - Determines a color scale of all column metadata rows
- highlight_colors - Selected rows can be highlighted in different color determined by this attribute. Rows to be highlighted are given by highlighted_rows attribute.
- heatmap_font_color - Determines a single color of the text inside the heatmap.
From InCHlib ver. 1.0.1 the color scales used in the heatmap can also be changed in a real time by clicking the color scale button on the left side of the visualization.
From InCHlib ver. 1.1.0 user can also add the custom color scales using the add_color_scale() method.
Example settings
Example data
The activities of several ligands measured at three different concentrations. Data are clustered using Euclidean distance and Ward's linkage. LogP (octanol/water partition coefficent), molecular weight and the number of aromatic rings descriptors are used as metadata. Show data >>