Skip to content
Back to formatted view

Raw Message

Message-ID: <1257260004.1997.2.camel@localhost.localdomain>
Date: 2009-11-03T14:53:24Z
From: Manuel Morales
Subject: bargraph.ci - CI and color question.
In-Reply-To: <5fbfa3f70911030151l4e314d99nc92c5d28f89c5630@mail.gmail.com>

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