[R] bargraph.ci - CI and color question.

Manuel Morales Manuel.A.Morales at williams.edu
Tue Nov 3 15:53:24 CET 2009


On Tue, 2009-11-03 at 03:51 -0600, Michael Just wrote:
> Hello,
> When using bargraph.CI in package sciplot can the bars for each group
> be different colors?  How do I select the color for each group?

With the option err.col

bargraph.CI(dose, len, group = supp, data =ToothGrowth,
err.col=c("gray","black"))

> When I use this instead of the default (SD vs SE):
> 
> bargraph.CI(x.factor = dose, response = len, data = ToothGrowth,
> 
>                ci.fun= function(x) c(mean(x)-sd(x), mean(x) + sd(x)) )
> 
> 
> Am I getting 95% CI bars?

No. You're plotting +/- 1 SD.
> 
> Thank you kindly,
> Michael Just
> 
> ______________________________________________
> R-help at 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.


-- 
http://mutualism.williams.edu




More information about the R-help mailing list