qBreaks: Internal function to re-calculate breaks of histograms when...

View source: R/hist.R

qBreaksR Documentation

Internal function to re-calculate breaks of histograms when x-axis is clipped

Description

The function calculates the new break numbers caused by the clipping of x axis. This is usally larger than the original number of breaks .

Usage

qBreaks(x, quantiles = c(0, 0.99), breaks = 100)

Arguments

x

Value to draw histgrams with

quantiles

Quantiles of x that determine the clip boundary of x-axis

breaks

Integer, number of breaks applied to original data

Value

Integer: number of breaks

Author(s)

Jitao David Zhang <jitao_david.zhang@roche.com>

See Also

This function is directly used by qHist

Examples


## Not run: 
testVal <- rnorm(1000)
qBreaks(testVal, quantiles=c(0.25, 0.75), breaks=100) ## should be about
400

## End(Not run)


bedapub/ribiosPlot documentation built on Sept. 1, 2023, 6:50 p.m.