defineDataBreaks: defineDataBreaks

View source: R/defineDataBreaks.R

defineDataBreaksR Documentation

defineDataBreaks

Description

Defines breaks as an input for “pheatmap“ for a given colour palette (to be used as the “color“ input in “pheatmap“) and dataset using the minimum and mximum values within “x“ to define the range for the breaks.

Usage

defineDataBreaks(x, col_pal, mid_point = NULL)

Arguments

x

The dataset of interest.

col_pal

A colour palette (of at least 4 entries)

mid_point

The mid point on the values for the pheatmap (defaults to the mean of “min(x)“ and “max(x)“). Useful if there is a natural boundary (e.g. 0).


stcolema/mdiHelpR documentation built on July 28, 2024, 5:41 a.m.