Description Usage Arguments Details Author(s)
Create barplots of a list of numeric values and error bars according to the confidence interval, standard deviation, interquartile range, etc.
1 2 3 4 5 6 |
x |
List of numeric values |
... |
Arguments forwarded to barplot in default method. |
ylim |
A range for the y-axis limits. |
height.fun |
Function to apply on each list object to calculate the height of the bars from. |
height.args |
Arguments forwarded to height.fun, as a named list. |
error.fun |
Function to calculate the error size. See also details. |
error.args |
Arguments forwarded to error.fun, as a named list. |
arrows.args |
Arguments forwarded to arrows, as a named list. |
na.rm |
Logical, remove missing values. |
Example for quantiles:
interquartile <- function(x) {quartile(x,.75)-mean(x)}
quantileQ <- function(x, q) {abs(quartile(x,q[1])-mean(x))}
Sven E. Templer
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.