hmGradient: creates a heatmap-ready data.frame

Description Usage Arguments Value Examples

View source: R/hmGradient.R

Description

Imports: grDevices

Usage

1
2
3
4
5
6
7
hmGradient(
  highcol = "red",
  midcol = "white",
  lowcol = "blue",
  bend = 1,
  n = 100
)

Arguments

highcol

string, color of your choice for high values

midcol

string, color of your choice for middle values

lowcol

string, color of your choice for low values

bend

integer, bends the color scale so that the middle color takes up less space the higher the bend value is

n

integer, half this number is used as an input for the colorRampPalette function for each gradient (high to mid and mid to low)

Value

a character vector of length n, containing all colors from high to low

Examples

1
2
3
library(ggdendroplot)

hmGradient()

NicolasH2/ggdendroplot documentation built on Dec. 17, 2021, 5:24 a.m.