Description Usage Arguments Details Value References Examples
build a two dimensional color palette
1 | palette2d(n, k, col1='white', col2='orange', col3='red')
|
n |
numeric |
k |
numeric |
col1 |
character; a color, the lower limit of the color palette |
col2 |
character; a color, the mid point of the color palette |
col3 |
character; a color, the upper limit of the color palette |
A bidimensional color palette is built. First a set1 of round(n/2) colors ranging from col1 and col2 is defined. Then a set2 of round(n/2) colors ranging from col2 and col3 is defined. Set1 and set2 are concatenated, as the first row of a k X n matrix M. Finally, for each column i of M, k colors ranging from white to M[1,i] are defined.
It is used in the GRheatmapPlot function to have a color palette simultaneously representing the intensity of an event (n) and its significance (k). See the example.
A matrix of color codes, as described in details
http://genomics.iit.it/groups/computational-epigenomics.html
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.