Description Usage Arguments Value Author(s) References See Also Examples
Visualisation of a two-dimensional binning based on equidistant or quantile based binning.
1 | binningplot(x, y, b = 10, bin = "equi", anchor = "min")
|
x |
A numeric vector. |
y |
A numeric vector. |
b |
A positive integer. Number of bins in each variable. |
bin |
A chraracter string. Binning method "equi" (default) for equidistant binning or "quant" for quantile binning. |
anchor |
A chraracter string or a numeric. How should the anchorpoint be chosen? " |
A ggplot object.
Katrin Grimm
H. Wickham (2009) ggplot2: Elegant Graphics for Data Analysis New York: Springer
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
x <- rnorm(10000)
y <- rnorm(10000)
# equidistant binning with 20 bins in each variable
binningplot(x,y,b=20)
# quantile based binning with 20 bins in each variable
binningplot(x,y,b=20,bin="quant")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.