powered by
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 )
minimum for continuous color map
maximum for continuous color map
palette name for RColorbrewer
number of stop points in RColorBrewer for continuous color map
colorspace name
number of stops in colorspace palettes
customized colormap name
a named vector or list that defines label to color mapping explicitly for discrete color mapping
use data as color, data must be either common color names or hexdecimal color names
custome stop points
color for NA
reverse stop points
whether to use grey scale
an object of class CMPar
# NOT RUN { WHeatmap(matrix(rnorm(2000),nrow=40)) + WColorBarV(1:20, cmp=CMPar(brewer.name = 'RdBu'), RightOf()) # }
Run the code above in your browser using DataLab