bhist | R Documentation |
Same as hist
except a confidence interval is drawn around each
bin height.
bhist(x, b = NULL, z = 1.64, xlab = "", main = "")
x |
a numerical vector |
b |
the number of bins, or a vector of break locations. If NULL,
chosen automatically by |
The width of the interval for height p is
sqrt(p*(1-p)/n)*exp(-1/6/p/n)
.
None.
Tom Minka
x <- c(rnorm(100,-2,0.5), rnorm(100,2,0.5)) b <- seq(-4,4,by=0.25) bhist(x,b)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.