[R] multiple error bars when NA present

William Revelle lists at revelle.net
Fri Jul 24 13:15:03 CEST 2009


At 1:38 AM -0500 7/24/09, Junqian Gordon Xu wrote:
>package: psych
>function: error.bars()
>R version: 2.9.1
>OS: both linux and windows
>
>a<-c(1,2,3,4,5)
>b<-c(1,2,3,4,4)
>c<-c(1,2,3,NA,5)
>data<-data.frame(a,b,c)
>
>error.bars(data[,1:2],ylim=c(0,6))   looks fine
>
>however
>
>error.bars(data,ylim=c(0.6))
>
>shows multiple error bars for each vector and the number of extra 
>error bars equals to the number of vectors with NA value present.
>
>Is this a bug?

Yes.  It is a bug. Thanks for the report.  Stay tuned.

Bill

>
>Thanks
>Gordon


-- 
William Revelle		http://personality-project.org/revelle.html
Professor			http://personality-project.org/personality.html
Department of Psychology             http://www.wcas.northwestern.edu/psych/
Northwestern University	http://www.northwestern.edu/
Use R for psychology                       http://personality-project.org/r




More information about the R-help mailing list