See also E3Val2Col. Uses val2hex from package Rpipelines
1 | E3ValMat2ColMat(x, col = c("#0000ff", "#ff0000"), maxval = 1)
|
x |
- numeric matrix. |
col |
- vector of two colors in #XXXXXX format. First element determines color associated with negative values. Second element determines color associated with positive values |
maxval |
- numeric. Value for which color reaches saturation |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.