View source: R/params_functions.R View source: R/Package-Code5-Compiled.R
set_scale.colors | R Documentation |
Set and override the default colors to be used in heatmaps. Stored in the params list object, the default is c("blue","black","yellow")
set_scale.colors(colors)
colors |
vector of colors |
colors used to generate heatmaps
Please see params for more information about accessing and setting up these variables.
In myHeatmap and myHeatmapByAnnotation, breaks and colors are set using these and other parameters. breaks <- seq(params$scale.range[1], params$scale.range[2],length.out=params$n.colors.range) my_cols=colorRampPalette(params$scale.colors)(n=params$n.colors.range-1)
~~Alison Moss~~
set_scale.range and set_n.colors.range
##initiate parameters
initiate_params()
#view heatmap with default colors
myHeatmap(RAGP_norm)
##switch to green-black-red heatmap
set_scale.colors(c("green","black","red"))
myHeatmap(RAGP_norm)
##custom color range
set_scale.colors(c("purple","blue","green","yellow","orange","red"))
myHeatmap(RAGP_norm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.