getScale {heatmaps} | R Documentation |
Make an appropriate scale for a heatmap
getScale(x, y)
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. |
numeric, length 2, a new scale
getScale(0.5, 5) # c(0, 5) getScale(-6, -2) # c(-6, 6) getScale(-6, 2) # c(-6, 6)