CMPar {wheatmap}R Documentation

Color Map Parameters

Description

Create color map parameters

Usage

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
)

Arguments

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

Value

an object of class CMPar

Examples

WHeatmap(matrix(rnorm(2000),nrow=40)) +
  WColorBarV(1:20, cmp=CMPar(brewer.name = 'RdBu'), RightOf())

[Package wheatmap version 0.2.0 Index]