set_scale.range: Set Scale Range of Heatmaps

View source: R/params_functions.R View source: R/Package-Code5-Compiled.R

set_scale.rangeR Documentation

Set Scale Range of Heatmaps

Description

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

Usage

set_scale.range(range)

Arguments

range

numeric of length 2

Details

scale of heatmaps

Note

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)

Author(s)

~~Alison Moss~~

See Also

set_scale.colors and set_n.colors.range

See assessScale to see how the data fits into the set scale

Examples

#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)


axm323/dataVisEasy documentation built on Feb. 1, 2024, 11:53 p.m.