barplotCI: barplotCI

Description Usage Arguments Value Author(s)

View source: R/aveytoolkit_barplotCI.R

Description

Create a barplot from the list x with one bar for each element of x

Usage

1
barplotCI(x, CIs = NULL, compareTo = 1, ...)

Arguments

x

list of values to create a boxplot from

CIs

the confidence intervals. Default is NULL and they will be calculated as the 95% confidence interval.

compareTo

non-negative integer specifying to which element of x should comparisons be made for significance. If 0, no significance will be added.

...

other arguments passed to barplot2 function

Value

Same as return from barplot2. A numeric vector (or matrix, when beside = TRUE), say mp, giving the coordinates of _all_ the bar midpoints drawn, useful for adding to the graph. If beside is true, use colMeans(mp) for the midpoints of each _group_ of bars, see example.

Author(s)

Christopher Bolen (creator) ; Stefan Avey (modified)


stefanavey/aveytoolkit documentation built on March 5, 2020, 12:49 a.m.