getScale {heatmaps} | R Documentation

## Make an appropriate scale for a heatmap

### Description

Make an appropriate scale for a heatmap

### Usage

    getScale(x, y)

### Arguments

`x` | Min/max values for the heatmap
`y` | Min/max values for the heatmap This function takes min/max values for a heatmap and generates a scale either starting, ending or centered on zero.

### Value

numeric, length 2, a new scale

### Examples

    getScale(0.5, 5) # c(0, 5)
    getScale(-6, -2) # c(-6, 6)
    getScale(-6, 2) # c(-6, 6)

[Package heatmaps version 1.16.0 Index]