colorGradient: Helper function for 'plotGene'

Description Usage Arguments Details Value Author(s)

View source: R/functions.R

Description

Helper function for plotGene

Usage

1
2
colorGradient(data, lcol = "grey", hcol = "red", na.col = "Black",
  opacity = NULL, maxVal = NULL, minVal = NULL, channelOrder = 1:3)

Arguments

data

Gene expression data from exprs of single cell dataset object.

lcol

Colour to be taken for low values. Default is "grey".

hcol

Colour to be taken by high values. Default is "red".

na.col

Colour for missing values, Default is Black.

opacity

Opacity value from 0 to 255

maxVal

Default NULL. Set the maximum and minimum color values manually.

minVal

Default NULL. Set the maximum and minimum color values manually.

channelOrder

Default 1:3 indicating red, green, blue.

Details

Helper function for plotGene to calculate colour gradient

Value

Returns a vector of colours for each point to be plotted.

Author(s)

Wajid Jawaid


wjawaid/bglab documentation built on May 4, 2019, 6:33 a.m.