Javier
2010-May-19 15:46 UTC
[R] How to plot the sample size on top of the bars of a barchart plot?
Dear users, Is there anyone how knows how to plot the sample size on top of the bars of a barchart plot? Many thanks in advance Javier -- View this message in context: http://r.789695.n4.nabble.com/How-to-plot-the-sample-size-on-top-of-the-bars-of-a-barchart-plot-tp2223062p2223062.html Sent from the R help mailing list archive at Nabble.com.
Marco Barbàra
2010-May-19 16:01 UTC
[R] How to plot the sample size on top of the bars of a barchart plot?
Il giorno Wed, 19 May 2010 08:46:06 -0700 (PDT) Javier <j.perez-barberia at macaulay.ac.uk> ha scritto:> > Dear users, > > Is there anyone how knows how to plot the sample size on top of the > bars of a barchart plot?Do you mean something like this? mp <- barplot( VADeaths[1,], ylim = c( 0 , 18 ) ) text( mp , VADeaths[1,] + 0.5 , paste( VADeaths[1,] , "?" ) )
Greg Snow
2010-May-19 16:36 UTC
[R] How to plot the sample size on top of the bars of a barchart plot?
Yes, and many of us also know why doing so is a bad idea. This has been discussed before, if you search the archives you can find the full discussion showing how, why not, and better approaches. -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.snow at imail.org 801.408.8111> -----Original Message----- > From: r-help-bounces at r-project.org [mailto:r-help-bounces at r- > project.org] On Behalf Of Javier > Sent: Wednesday, May 19, 2010 9:46 AM > To: r-help at r-project.org > Subject: [R] How to plot the sample size on top of the bars of a > barchart plot? > > > Dear users, > > Is there anyone how knows how to plot the sample size on top of the > bars of > a barchart plot? > > Many thanks in advance > > Javier > > > > > -- > View this message in context: http://r.789695.n4.nabble.com/How-to- > plot-the-sample-size-on-top-of-the-bars-of-a-barchart-plot- > tp2223062p2223062.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > 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.