attriColorValue: Attribute Color to Value

Description Usage Arguments Value Examples

View source: R/Enrich.R

Description

Attribute Color to Value

Usage

1
attriColorValue(Value, df, colors=c(a,b,c),feet)

Arguments

Value

integer

df

data frame with numeric values

colors

a vector of 5 colors

feet

the interval between two successive colors in the palette (0.1)

Value

Hex Color Code

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
clrRef <- attriColorValue(1.2,
ProfData,
 colors = c("blue3", "white","red"),
  feet=10)

## End(Not run)

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