CMPar | R Documentation |
Create color map parameters
CMPar( dmin = NULL, dmax = NULL, brewer.name = NULL, brewer.n = 3, colorspace.name = NULL, colorspace.n = 2, cmap = NULL, label2color = NULL, use.data = FALSE, stop.points = NULL, na.color = "#C0C0C0", rev = FALSE, grey.scale = FALSE )
dmin |
minimum for continuous color map |
dmax |
maximum for continuous color map |
brewer.name |
palette name for RColorbrewer |
brewer.n |
number of stop points in RColorBrewer for continuous color map |
colorspace.name |
colorspace name |
colorspace.n |
number of stops in colorspace palettes |
cmap |
customized colormap name |
label2color |
a named vector or list that defines label to color mapping explicitly for discrete color mapping |
use.data |
use data as color, data must be either common color names or hexdecimal color names |
stop.points |
custome stop points |
na.color |
color for NA |
rev |
reverse stop points |
grey.scale |
whether to use grey scale |
an object of class CMPar
WHeatmap(matrix(rnorm(2000),nrow=40)) + WColorBarV(1:20, cmp=CMPar(brewer.name = 'RdBu'), RightOf())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.