Hi, How to assign height value on bar plot for each bar? http://r.789695.n4.nabble.com/file/n4631457/Barplot.png -- View this message in context: http://r.789695.n4.nabble.com/How-to-assign-height-value-on-bar-plot-tp4631457.html Sent from the R help mailing list archive at Nabble.com.
How to assign height value on bar plot?
5 messages · Manish Gupta, Uwe Ligges, Jim Lemon +1 more
On 26.05.2012 18:07, Manish Gupta wrote:
Hi, How to assign height value on bar plot for each bar?
See ?barplot. Uwe Ligges
http://r.789695.n4.nabble.com/file/n4631457/Barplot.png -- View this message in context: http://r.789695.n4.nabble.com/How-to-assign-height-value-on-bar-plot-tp4631457.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.
My Question is how to write height length on each bar. -- View this message in context: http://r.789695.n4.nabble.com/How-to-assign-height-value-on-bar-plot-tp4631457p4631468.html Sent from the R help mailing list archive at Nabble.com.
On 05/27/2012 04:30 AM, Manish Gupta wrote:
My Question is how to write height length on each bar.
Hi Manish, If don't have stacked bars, it is fairly simple: barpos<-barplot(height,...) text(barpos,height,labels=height) usually with a bit of fooling around with the cex argument. If you want each value in a little box, try boxed.labels in plotrix. Jim
Did you look at the help page that Uwe directed you to? At least one of the examples on that page demonstrates adding text to a barplot. But before you do that you should read through the discussion here: http://tolstoy.newcastle.edu.au/R/e2/help/07/08/22858.html on why you might not want to add text to the top of the bars and some of the alternatives. On Sat, May 26, 2012 at 12:30 PM, Manish Gupta
<mandecent.gupta at gmail.com> wrote:
My Question is how to write height length on each bar. -- View this message in context: http://r.789695.n4.nabble.com/How-to-assign-height-value-on-bar-plot-tp4631457p4631468.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.
Gregory (Greg) L. Snow Ph.D. 538280 at gmail.com