Hi r-help-boun...@r-project.org napsal dne 02.12.2010 16:36:09:
> Hi everyone > > I spent hours trying to figure this out but as a newbie I am stuck... > can someone show me the R code for the following: > > If I had a tab delimited file called "file", containing 3 rows : > 9.56 8.67 9.28 8.81 7.93 9.85 8.92 10.19 8.63 > 6.36 7.29 6.68 7.11 8.04 6.05 7.04 5.80 7.34 > 3.22 3.22 3.28 4.37 5.21 3.10 3.37 2.56 5.43 > > How do I import the file, then plot the mean and standard error bars of the > data from each row? Here is how I found how to do it test=read.table("clipboard") test V1 V2 V3 V4 V5 V6 V7 V8 V9 1 9.56 8.67 9.28 8.81 7.93 9.85 8.92 10.19 8.63 2 6.36 7.29 6.68 7.11 8.04 6.05 7.04 5.80 7.34 3 3.22 3.22 3.28 4.37 5.21 3.10 3.37 2.56 5.43 test1<-t(test) ??error library(Hmisc) ?errbar starting httpd help server ... done test.m<-colMeans(test1) test.sd<-apply(test1, 2, sd) errbar(1:3, test.m, test.m+test.sd, test.m-test.sd) Is it OK? Regards Petr > > > Thank you so much > > ______________________________________________ > R-help@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. ______________________________________________ R-help@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.