View source: R/visualize_network.R
map_value_to_color | R Documentation |
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.
map_value_to_color(value)
value |
a numeric vector storing values to map |
a character vector storing the mapped HEX color values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.