histOverlap | R Documentation |
Histogram of number of values in overlapping bins.
histOverlap(x, breaks, right = TRUE, graph = TRUE, indices = FALSE)
x |
Numeric values. |
breaks |
One integer, three numeric values, or a matrix or data frame with at least two columns:
|
right |
Logical, if |
graph |
Logical, if |
indices |
Logical, if |
Matrix
hist
set.seed(123)
x <- rnorm(1000)
histOverlap(x, breaks=10, graph=TRUE)
histOverlap(x, breaks=c(0, 1, 10), graph=TRUE)
mat <- matrix(c(seq(0, 1, by=0.1), seq(0.3, 1.3, by=0.1)), ncol=2)
histOverlap(x, breaks=mat, graph=TRUE)
histOverlap(x, breaks=mat, indices=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.