xclipHist | R Documentation |
Draw histograms with clipped x axis; the clipping is determined by quantiles of x values.
xclipHist(
x,
xclip = c(0.01, 0.99),
breaks = 100,
quantiles = 0.25,
qlty = 2,
qlwd = 2,
qcol = "red",
...
)
x |
Value to draw the histogram |
xclip |
Quantiles of x-values that should be displayed; values outside of this range are not shown in the histogram |
breaks |
A integer number indicating how many breaks should the original unclipped data have; the function will automatically re-calculate the breaks of the clipped data so that they look consistent. |
quantiles |
Numeric values or |
qlty |
Type of vertical quantile lines |
qlwd |
Width of vertical quantile lines |
qcol |
Color of vertical quantile lines |
... |
Other parameters that are passed to |
The function clips (subsets) x-axis and recalcualte the breaks so that the clipped image looks like a real subset of the original data.
The object returned by the hist
function, with an extra item
named quantiles
.
Jitao David Zhang <jitao_david.zhang@roche.com>
qHist
, which draws quantile line and texts onto histograms.
testVal <- c(rnorm(1000),10)
hist(testVal, breaks=100)
xclipRes <- xclipHist(testVal, xclip=c(0.001, 0.999), quantiles=0.50)
xclipRes$quantiles
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.