Learn R Programming

ABarray (version 1.40.0)

scaleColorBar: Create scale for heatmap

Description

Create a bar for heatmap scales

Usage

scaleColorBar(x, horizontal = FALSE, col = rgcolorsfunc(50), scale = 1:length(x), k = 10, cLen = 9, ...)

Arguments

x
vector of scales need to be plotted
horizontal
whether the bar is vertical or horizontal
col
color function
scale
scale of the bar
k
number of intervals on scale
cLen
length of columns
...
additional arguments

Value

none

Examples

Run this code
##--- Do not call this function directly !! ----

Run the code above in your browser using DataLab