hdr_bin | R Documentation |
Binning highest density regions in one or two dimensions
hdr_bin(x, y = NULL, prob = c(0.5, 0.9, 0.99), ...)
x |
Numeric vector |
y |
Numeric vector of same length as x. |
prob |
Probability coverage required for HDRs |
... |
... |
probability coverage for each element of the numeric vectors.
library(ggplot2) ggplot(data = faithful, aes(x = waiting, y = eruptions)) + geom_point(aes(colour = hdr_bin(x = waiting, y = eruptions)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.