attriColorVector: Attribute color to a vector of numeric values

Description Usage Arguments Value Examples

View source: R/Reactome.R

Description

Attribute color to a vector of numeric values

Usage

1
attriColorVector(Value, vector, colors=c(a,b,c),feet)

Arguments

Value

numeric

vector

A vector of numeric data

colors

3 colors

feet

An interval between two numeric value needed to change the color

Value

A vetor of colors

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
cgds <- CGDS("http://www.cbioportal.org/")
## Not run: 
geneList <- whichGeneList("73")
ProfData <- getProfileData(cgds,
 geneList, "gbm_tcga_pub_mrna", "gbm_tcga_pub_all")
rownames(ProfData) <- NULL
clrVec <- attriColorVector(1.2,
ProfData[1,],
 colors = c("blue", "white","red"),
  feet=1)

## End(Not run)

bioCancer documentation built on Nov. 8, 2020, 6:26 p.m.