center.palette: Calculates a color palette where zero values are centered at...

View source: R/center.palette.R

center.paletteR Documentation

Calculates a color palette where zero values are centered at white.

Description

Calculates a color palette where zero values are centered at white.

Usage

center.palette(data, palette_length = 100, color1 = "blue",
  color2 = "red")

Arguments

data

A matrix of integers.

palette_length

The size of the color palette. Default = 100

color1

The color for the low bound. Default = "blue"

color2

The upper bound color. Default = "red"

Value

A vector containing the new color palette.

Author(s)

Amy L. Olex alolex@vcu.edu

Examples

my_palette <- center.palette(data, palette_length = 200, color1 = "black", color2 = "pink")

AmyOlex/RNASeqBits documentation built on Jan. 26, 2024, 7:08 a.m.