Re: [R] Error Bar Issues

2010-06-06 Thread Joris Meys
On Sun, Jun 6, 2010 at 12:51 AM, beloitstudent schu...@beloit.edu wrote: Thanks for the suggestion...but R still doesn't like it.  Now I have 3 error messages.  It seems to dislike my *err=y* command.  I'm going to continue trying.  Thanks for your help!  If you happen to spot anything else,

[R] Error Bar Issues

2010-06-05 Thread beloitstudent
Hello all, I am an undergraduate student who is having syntax issues trying to get error bars on my graph. This is the data, which I assigned the name Saline to. Time Average SEM 1 -20 0.00 0.000 2 330 0.00 0.000 445 3.227902

Re: [R] Error Bar Issues

2010-06-05 Thread Joris Meys
you can't refer to an argument within a function call. Try uiw - Saline[,3] plotCI(x=Saline [,1],y=Saline [,2], uiw=uiw, liw=uiw, err=y, pch=21, pt.bg=par(bg), cex=1.5, lty=1, type=o, gap=0, sfrac=0.005, xlim=c(-21,340),xaxp=c(-20,320,11), xlab=Time (min), ylim=c(0,12), yaxp=c(0,12,11),

Re: [R] Error Bar Issues

2010-06-05 Thread beloitstudent
Thanks for the suggestion...but R still doesn't like it. Now I have 3 error messages. It seems to dislike my *err=y* command. I'm going to continue trying. Thanks for your help! If you happen to spot anything else, please let me know! thanks! beloitstudent On Sat, Jun 5, 2010 at 5:16 PM,

Re: [R] Error Bar Issues

2010-06-05 Thread William Revelle
Dear Beloitstudent; Although Ben Bolker will have to give you the definitive answer, the following will do what I think you want to do. library(plotrix) #for those of us who don't know where plotCI comes from #give us the data: Saline - structure(list(Time = c(-20L, NA, 30L, 45L, 60L,