add.errorbars: Add errorbars to a barplot.

Description Usage Arguments Author(s)

Description

Highly recommend you use errorbarplot instead, since you need to provide the same arguments as for errorbarplot that affect the bar size and spacing to this function since the placing of the error bars in the middle of the bars is impossible to achieve otherwise.

Usage

1
2
3
4
  add.errorbars(height, width = 1, space = NULL,
    beside = FALSE, horiz = FALSE, errors = NULL,
    errors.col = par("fg"), errors.width = 0.15,
    errors.type = c("+", "-"), prespace = 0)

Arguments

height

see errorbarplot

width

see errorbarplot

space

see errorbarplot

beside

see errorbarplot

horiz

see errorbarplot

...

see errorbarplot

errors

the object containing errors (eg standard deviation) with the SAME size/dimension as height.

errors.col

the colour of the errors bars

errors.width

the proportion of width that the ticks should be at the top/bottom or lhs/rhs of the error tick

errors.type

plot the errors bars going into and outof the bar itself (eg just "+" will plot the tick pointing out of the bar)

prespace

mostly used for interal processing when height and errors is a matrix.

Author(s)

Mark Cowley, 28 April 2006


drmjc/mjcgraphics documentation built on May 15, 2019, 2:40 p.m.