| hist2d | R Documentation | 
Two-dimensional histogram
hist2d(x, breaks1 = "Sturges", breaks2 = "Sturges", right = TRUE, ...)
| 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  | 
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.
hist
x1 <- rnorm(1000)
x2 <- 0.5 * x1 * rnorm(1000)
x <- data.frame(x1=x1, x2=x2)
hist2d(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.