Description Usage Arguments Value Author(s) See Also Examples
This function generates a ramp of colors for heat.map
derivated functions.
1 2 3 |
colors |
Character vector of length 3, determining starting, middle and final colors. |
n |
Single integer value, amount of colors / values to generate. |
shapeFun |
Function taking at least 2 arguments : |
... |
Further arguments to |
part |
Single integer, defined as 1 while generating colors between the first two boundaries, and 2 otherwise. |
base |
Single numeric value, base for exponential slope. |
heat
returns a character vector of colors in hexadecimal representation.
heat.lin
and heat.expr
return n
numeric values, defining a curve whose slope will be mimiced during color interpolation.
Sylvain Mareschal
heat.map
, clusterize
, predict.LPS
1 2 3 4 5 6 7 | # Classical heatmap colors
palette <- heat(c("green", "black", "red"))
heat.scale(zlim=c(-2,2), col.heatmap=palette)
# Two distinct shapes provided
heat.scale(zlim=c(-2,2), col.heatmap=heat(shapeFun=heat.lin))
heat.scale(zlim=c(-2,2), col.heatmap=heat(shapeFun=heat.exp))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.