Attribute color to a vector of numeric values

Share:

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/public-portal/")
## 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)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.