Description Usage Arguments Value Examples
Put values of vector in bins based on quantiles.
1 2 3 |
x |
[ |
probs |
[ |
include.lowest |
[ |
as.factor |
[ |
values.as.names |
[ |
... |
further arguments passed down to the base functions quantile() and cut() |
integer(length(x)) or factor
1 2 3 4 5 6 7 8 9 | quantileBins(1:20, values.as.names = TRUE)
n = 200
x = runif(n, min = 0, max = 1)
x1 = x + rnorm(n, 0, 0.05)
x2 = x + rnorm(n, 0, 0.05)
y = x1 + x2^2 + rnorm(n, 0, 0.1)
plot(x1, x2, cex = quantileBins(y, probs = seq(0,1,.1))/5,
col = quantileBins(y))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.