hist2d {statisfactory} | R Documentation |
Two-dimensional histogram
Description
Two-dimensional histogram
Usage
hist2d(x, breaks1 = "Sturges", breaks2 = "Sturges", right = TRUE, ...)
Arguments
x |
Data frame or matrix with at least two columns. Only first two columns are used to tally frequencies. |
breaks1 |
One of the following describing how breaks for the first variable are calculated:
|
breaks2 |
Same as |
right |
Logical, if |
... |
Arguments to pass to |
Value
Object of class matrix
and histogram2d
. Columns pertain to bins of x1
and rows x2
. Column names and row names are mid-points of bins.
See Also
Examples
x1 <- rnorm(1000)
x2 <- 0.5 * x1 * rnorm(1000)
x <- data.frame(x1=x1, x2=x2)
hist2d(x)