xybarplot: Plot bars on irregular x locations

Description Usage Arguments Value See Also Examples

Description

This function is an extension of barplot which plots bars on given locations on the x-Axes.

Usage

1
xybarplot(x, y, wbox = min(diff(x)) * 0.9, ofs = 0.5, ...)

Arguments

x

vector of x locations

y

vector of y values (heights)

wbox

width of the boxes (currently only one single value allowed)

ofs

offset of the boxes

...

additional parameters of barplot

Value

A numeric vector, giving the coordinates of the bar midpoints drawn, useful for adding to the graph.

See Also

barplot, plot

Examples

1
2
3
4
5
6
x <- round((1:10)* 14 + runif(10, min=-5, max=5))
y <- rnorm(x, mean=50, sd=10)

xybarplot(x, y)
axis(1)
box()

simecolUtil documentation built on May 2, 2019, 5:57 p.m.