map_value_to_color: Mapping value to HEX color

View source: R/visualize_network.R

map_value_to_colorR Documentation

Mapping value to HEX color

Description

Maps continuous values to HEX color values. The positive values are mapped to the "Reds" palette from Color Brewer 2 http://colorbrewer2.org/#type=sequential&scheme=Reds&n=3, and the negative values are oppsitely mapped to the "Blues" palette from the Color Brewer 2 http://colorbrewer2.org/#type=sequential&scheme=Blues&n=3.

Usage

map_value_to_color(value)

Arguments

value

a numeric vector storing values to map

Value

a character vector storing the mapped HEX color values


greenelab/ADAGEpath documentation built on May 25, 2022, 7:11 a.m.