default_color: Predifined color palettes from RColorBrewer + Rainbow

Description Usage Arguments Value Examples

View source: R/PlotHeatmap.R

Description

Predifined color palettes from RColorBrewer + Rainbow

Usage

1

Arguments

col

Character, RColorBrewer colorscheme or "Rainbow"

This function provides a convenient function to all color palettes from RColorBrewer, and a better version of R's rainbow function (specifically rev(rainbow(9, start=0, end=4/6)), so it starts blue and ends with red).

Value

character, a length-9 color palette

Examples

1
2
default_color("Blues")
default_color("Rainbow")

heatmaps documentation built on Nov. 8, 2020, 7:32 p.m.