Attribute Color to Value

Description

Attribute Color to Value

Usage

1
attriColorValue(Value, df, colors=c(a,b,c, d,e),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/public-portal/")
## 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("blue", "white","yellow","red", "black"),
  feet=10)

## End(Not run)

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