Thanks for the solution. And sorry about the not workable example (I actually edited the post a minute after posting it -too late I am afraid).
> library(sciplot) > bargraph.CI(peptide, surface, group=adjunct,data = y) Error in eval(substitute(subset), envir = data) : object "y" not found # groan, ... why can't people offer a workable example? > data(ToothGrowth) # se as default > bargraph.CI(x.factor = dose, response = len, data = ToothGrowth) # create desired function > bargraph.CI(x.factor = dose, response = len, data = ToothGrowth, ci.fun= function(x) c(mean(x)-sd(x), mean(x) + sd(x)) ) -- View this message in context: http://www.nabble.com/bargraph.CI-change-se-for-sd-tp22633770p22644429.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.