binningplot: Two-dimensional binningplot

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/binning.R

Description

Visualisation of a two-dimensional binning based on equidistant or quantile based binning.

Usage

1
binningplot(x, y, b = 10, bin = "equi", anchor = "min")

Arguments

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? "min" (default) for the minimum of each variable, "ggplot" for the method used in ggplot graphics, "nice" for a "pretty"" anchor point, or a user specified value.

Value

A ggplot object.

Author(s)

Katrin Grimm

References

H. Wickham (2009) ggplot2: Elegant Graphics for Data Analysis New York: Springer

See Also

binning

Examples

 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)

mbgraphic documentation built on May 2, 2019, 2:45 a.m.