[R] Please help......barplot2

Petr PIKAL petr.pikal at precheza.cz
Fri Dec 3 10:51:48 CET 2010


Hi

r-help-bounces at r-project.org napsal dne 02.12.2010 17:26:20:

> 
> On Dec 2, 2010, at 11:10 AM, David Lyon wrote:
> 
> > Thanks David
> >
> > Do you have the url link that details the worked solution to my 
> > problem:
> >
> > "that we have an extensive collection of documentation suitable for 
> > beginners that probably has similar problems worked out:"
> 
> http://cran.r-project.org/other-docs.html
> 
> My opinion: the Kuhnert and Venables piece is well worth the time to 
> download its 3MB extent, which is not to diminish the value of the 
> rest of the contributed documentation. I don't think you can go wring 
> starting there. I have in the past used Alzola and Harrell's and am 
> currently working through the piece that Harrell does on literate 
> programming (not on the contributed page:
> 
> http://biostat.mc.vanderbilt.edu/wiki/Main/StatReport
> http://biostat.mc.vanderbilt.edu/wiki/pub/Main/StatReport/summary.pdf
> 
> 
> >
> > If not can someone show me how to
> > " How do I import the file, then plot the mean and standard error 
> > bars of the data from each row?"
> >
> > Thanks in advance.
> > Also this is not an homework problem just somebody using it as a 
> > newbie at work in research who normally codes in C, C++ and JAVA.
> 
> I noted that Petr's solution used colMeans, I thought you were asking 
> for rowMeans.

Yes but I transposed the file before as column wise operations are more 
common.

Best regards
Petr

> 
> -- 
> David.
> >
> > Thanks again.
> >
> >
> > --- On Thu, 12/2/10, David Winsemius <dwinsemius at comcast.net> wrote:
> >
> >> From: David Winsemius <dwinsemius at comcast.net>
> >> Subject: Re: [R] Please help......barplot2
> >> To: "David Lyon" <david_lyon3 at yahoo.com>
> >> Cc: r-help at r-project.org
> >> Date: Thursday, December 2, 2010, 10:57 AM
> >>
> >> On Dec 2, 2010, at 10:36 AM, David Lyon wrote:
> >>
> >>> 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",
> >>
> >> Are you sure that you are not on an OS that hides the file
> >> extensions by default?
> >>
> >>
> >>> 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?
> >>
> >> If the files name is really "file" then:
> >>
> >> read.table(file="file", header=FALSE, sep="\t")
> >>
> >> At this point I will note that this appears to be
> >> structured along the lines I might except for a homework
> >> problem. I will offer the advice that the plotCI function in
> >> package plotrix looks suitable and that we have an extensive
> >> collection of documentation suitable for beginners that
> >> probably has similar problems worked out:
> >>
> >>
> >>>
> >>>
> >>> Thank you so much
> >>>
> >>> ______________________________________________
> >>> 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.
> >>
> >> David Winsemius, MD
> >> West Hartford, CT
> >>
> >>
> >
> >
> >
> 
> David Winsemius, MD
> West Hartford, CT
> 
> ______________________________________________
> 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.



More information about the R-help mailing list