numbers2colors | R Documentation |

The function creates a color represenation for the given numeric input.

numbers2colors( x, signed = NULL, centered = signed, lim = NULL, commonLim = FALSE, colors = if (signed) blueWhiteRed(100) else blueWhiteRed(100)[51:100], naColor = "grey")

`x` |
a vector or matrix of numbers. Missing values are allowed and will be assigned the color
given in |

`signed` |
logical: should |

`centered` |
logical. If |

`lim` |
optional specification of limits, that is numeric values that should correspond to the
first and last entry of |

`commonLim` |
logical: should limits be calculated separately for each column of x, or should the
limits be the same for all columns? Only applies if |

`colors` |
color palette to represent the given numbers. |

`naColor` |
color to represent missing values in |

Each column of `x`

is processed individually, meaning that the color palette is adjusted
individually for each column of `x`

.

A vector or matrix (of the same dimensions as `x`

) of colors.

Peter Langfelder

`labels2colors`

for color coding of ordinal labels.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.