[R] Problem with bargraph.CI in Sciplot package

Dieter Menne dieter.menne at menne-biomed.de
Sat Apr 11 10:25:20 CEST 2009


Metconnection <simontbate <at> hotmail.co.uk> writes:

> 
> 
> Hi there, 
> I wonder if anyone can help me. I'm trying to use bargraph.CI in the Sciplot
> package when there is a missing combination of the factor levels.
> Unfortunately the standard errors on the plot do not appear to be correct. 
> 
...
 
> but when I remove a combination of the two factors the error whiskers appear
> to be on the wrong bars:
> 
> #excluding one combination
> response<-c(34,65,65,45,54,23,43,23,76,87,65,45)
> factorA<-c("A","A","A","A","B","B","B","B","B","B","B","B")
> factorB<-c("b","b","b","b","a","a","a","a","b","b","b","b")
> data<-data.frame(response,factorA,factorB)
> bargraph.CI(x.factor = data$factorB,data$response, group=data$factorA,
> legend=TRUE)
> 

This is a bug you should report to the author. Standard R-wisdom would
be not to use this type of plot. But I know that big bosses love it,
because it shows more ink. One day, even Deepayan gave up and posted:

http://markmail.org/message/7lxmnvimcgvkulmw

Dieter




More information about the R-help mailing list