I want to change the point of origin for a plot with vertical and horizontal error bars. I'm using the plotCI function from the 'plotrix' package for plotting.
A very short reproducible example:
x <- c(1, 2)
y <- c(3, 4)
err.x <- c(0.5, 0.2)
err.y <- c(0.25, 0.3)
plotCI(x, y, uiw = err.x, err = "x",
ylim = range(y+err.y, y-err.y))
plotCI(x, y, uiw = err.y, err = "y", add = T)
Everything is fine in this plot. I got both horizontal and vertical error bars.
plotCI(x, y, uiw = err.x, err = "x",
ylim = rev(range(y+err.y, y-err.y)))
plotCI(x, y, uiw = err.y, err = "y", add = T)
Here, I only get the horizontal error bars. It seems as if the reversal of the y-axis wasn't 'recognized' by the second call to plotCI.
Any ideas?!? Thanks a lot!