RCircos.Get.Heatmap.Data.Colors: Set Colors for One Track of Heatmap

Description Usage Arguments Value Author(s) Examples

View source: R/RCircosHeatmap.R

Description

Assign colors to each value of a numeric vector for heatmap plot. The colour scale needs to be calculated from whole datasets when there are more than one data column so the minimum and maximum values for heatmap data must be provided.

Usage

1
RCircos.Get.Heatmap.Data.Colors(heatmap.value=NULL, min.value=NULL, max.value=NULL)

Arguments

heatmap.value

A numeric vector.

min.value

Numeric, the minimu value for heatmap scale.

max.value

Numeric,the maximum value for heatmap scale.

Value

Character vector of R color names with length same as the length of data values.

Author(s)

Henry Zhang

Examples

1
2
3
4
5
## Not run: 
library(RCircos)
data(RCircos.Heatmap.Data)
hColors <- RCircos.Get.Heatmap.Data.Colors(RCircos.Heatmap.Data[,5], min.value=-3, max.value=3)
## End(Not run)

RCircos documentation built on May 2, 2019, 5:51 a.m.