getBreaks | R Documentation |
Produces symmetrical breaks for a color scale, with the scale steps increasing for large values, which is useful to avoid outliers influencing too much the color scale.
getBreaks(x, n, split.prop = 0.98, symmetric = TRUE)
x |
A matrix of log2FC (or any numerical values centered around 0) |
n |
The desired number of breaks. |
split.prop |
The proportion of the data points to plot on a linear scale; the remaining will be plotted on a scale with regular frequency per step (quantile). |
symmetric |
Logical; whether breaks should be symmetric around 0 (default TRUE) |
A vector of breaks of length = 'n'
dat <- rnorm(100,sd = 10)
getBreaks(dat, 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.