Is there an easy way to make the error bars the same color as the points and lines they are plotted with.

My example
# fake data
x=sample(1:10, 100, replace =T)
y = rnorm(100) + runif(100)
df=data.frame(x,y)
# summarize data
m = aggregate(df,list(x),mean)
se = aggregate(df,list(x),sd)/sqrt(10)
library(Hmisc)
plot(x,y)
errbar(m$x, m$y, m$y+1.96*se$y, m$y-1.96*se$y,col='red',cex=2,type='b',add=TRUE)

Thanks,
Rob


------------------------------------------
Robert W. Baer, Ph.D.
Professor of Physiology
Kirksville College of Osteopathic Medicine
A. T. Still University of Health Sciences
Kirksville, MO 63501
660-626-232
FAX 660-626-2965

	[[alternative HTML version deleted]]

