View source: R/params_functions.R View source: R/Package-Code5-Compiled.R
set_scale.range | R Documentation |
Set and override the default scale to be used in heatmaps. Stored in the params list object, the default is c(-1,1). How well the data fits into these limits can be assessed using assessScale
set_scale.range(range)
range |
numeric of length 2 |
scale of heatmaps
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.colors and set_n.colors.range
See assessScale to see how the data fits into the set scale
#initiate parameters
initiate_params()
##view heatmap with default range of -1 to 1
myHeatmap(RAGP_norm)
##set scale to -2 to 2, view with new range
set_scale.range(c(-2,2))
myHeatmap(RAGP_norm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.