get_color_gradient: Generate Color Gradient

Description Usage Arguments Value Author(s) Examples

Description

Generate color gradient for, e.g. gene expression.

Usage

1
2
3
4
5
get_color_gradient(
  x,
  col = colorRampPalette(c("Blue", "Red"))(100),
  breaks = seq(-2, 2, length.out = 100)
)

Arguments

x

(numeric) Vector based on which color gradient is generated.

col

(character) Color vector.

breaks

(numeric) A set of breakpoints for the colors. Must be the same length of col.

Value

(character) Colors.

Author(s)

DING, HONGXU (hd2326@columbia.edu)

Examples

1

hd2326/pageRank documentation built on Dec. 18, 2020, 8:44 a.m.