Hi, help.I would like to plot the mean and standard deviation against a factor in the xaxis- in other words I want an errorplot. I also want to put the standard deviation like a "T" on top of a barplot. How can do this in R Bragadeesh
hi, I would like to plot error bar graph in R . Can I also change the the error bar graph to mean and Stdev instead of std error of mean. Also can we put a error bar on top of a bar plot like a "T" graph. Bragadeesh
>-----Original Message----- >From: r-help-admin at stat.math.ethz.ch >[mailto:r-help-admin at stat.math.ethz.ch] On Behalf Of Thanjavur >Bragadeesh >Sent: Monday, February 10, 2003 4:08 PM >To: r-announce at stat.math.ethz.ch >Subject: [R] help > > > >Hi, > >help.I would like to plot the mean and standard deviation >against a factor >in the xaxis- in other words I want an errorplot. I also want >to put the >standard deviation like a "T" on top of a barplot. How can do >this in R > >BragadeeshLook at the barplot2() function in the gregmisc package on CRAN. A quick example using barplot2() and faked numbers: library(gregmisc) barplot2(c(5, 8, 4, 6, 9), plot.ci = TRUE, ci.l = c(5, 8, 4, 6, 9), ci.u = c(5.5, 8.3, 4.25, 6.7, 10.5)) This will give you 5 vertical bars, with the upper bounds of the confidence intervals plotted on top of the bars. Note that I have specified that the lower bounds are the same as the bar values, which results in no lower intervals being plotted. If you want both upper and lower bounds plotted, use appropriate values for the 'ci.l' argument. There are other options for axis configuration, grid lines and so forth in barplot2() if you should need them. Hope that helps, Marc Schwartz
Alternatively, use the 'plotCI' function (or for standard errors, 'plotmeans' function) in the gregmisc package. -Greg> -----Original Message----- > From: Marc Schwartz [mailto:mschwartz at medanalytics.com] > Sent: Friday, February 21, 2003 8:38 AM > To: 'Thanjavur Bragadeesh'; r-help at stat.math.ethz.ch > Subject: RE: [R] help > > > >-----Original Message----- > >From: r-help-admin at stat.math.ethz.ch > >[mailto:r-help-admin at stat.math.ethz.ch] On Behalf Of Thanjavur > >Bragadeesh > >Sent: Monday, February 10, 2003 4:08 PM > >To: r-announce at stat.math.ethz.ch > >Subject: [R] help > > > > > > > >Hi, > > > >help.I would like to plot the mean and standard deviation > >against a factor > >in the xaxis- in other words I want an errorplot. I also want > >to put the > >standard deviation like a "T" on top of a barplot. How can do > >this in R > > > >Bragadeesh > > Look at the barplot2() function in the gregmisc package on CRAN. > > A quick example using barplot2() and faked numbers: > > > library(gregmisc) > barplot2(c(5, 8, 4, 6, 9), plot.ci = TRUE, ci.l = c(5, 8, 4, 6, 9), > ci.u = c(5.5, 8.3, 4.25, 6.7, 10.5)) > > > This will give you 5 vertical bars, with the upper bounds of the > confidence intervals plotted on top of the bars. Note that I have > specified that the lower bounds are the same as the bar values, which > results in no lower intervals being plotted. If you want both upper > and lower bounds plotted, use appropriate values for the 'ci.l' > argument. > > There are other options for axis configuration, grid lines and so > forth in barplot2() if you should need them. > > Hope that helps, > > Marc Schwartz > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > http://www.stat.math.ethz.ch/mailman/listinfo/r-help >LEGAL NOTICE\ Unless expressly stated otherwise, this message is ... [[dropped]]
Mac version for 8.6 cannot run R. Click on icon shows message that "cannot be opened because carbon lib cannot be found"; what do I do? J.
On Sat, 8 Mar 2003, Vigo Rivera, Jaime wrote:> Mac version for 8.6 cannot run R. Click on icon shows message that "cannot > be opened because carbon lib cannot be found"; what do I do?You need to download CarbonLib from apple.com. This is mentioned in the Mac FAQ, but the link there is stale. You can find CarbonLib 1.6 at http://docs.info.apple.com/article.html?artnum=120047 -thomas