powered by
Plot of a histogram of a given vector x and the related confidence intervals (lower, upper).
x
lower
upper
hist_ci( x, alpha = 0.05, col_bars = "grey", col_ci = "red", ... )
Histogram plot, no returned value
A numeric vector
Significance level \(\alpha\) for 1-\(\alpha\)*100 confidence intervals
Color of bars in histogram
Color of lines for confidence interval
Additional arguments passed to barplot()
barplot()
Thomas Wieland
Helper function for plot(sbm_ci), but may be used separately.
plot(sbm_ci)
numeric_vector <- c(1,9,5,6,3,10,20,6,9,14,3,5,8,6,11) # any numeric vector hist_ci(numeric_vector)
Run the code above in your browser using DataLab