Hi, Try the format from this example:
mp <- barplot(VADeaths) tot <- colSums(VADeaths) text(mp, tot+6, format(tot), xpd = TRUE, col = "red") text(mp, c("A","B","C","D"), xpd = TRUE, col = "blue") I hope it helps. A.K. ----- Original Message ----- From: Manish Gupta <mandecent.gu...@gmail.com> To: r-help@r-project.org Cc: Sent: Tuesday, June 12, 2012 9:49 PM Subject: [R] How to write text in bar plot in R? Hi, I am working on R plot but i need to write some text for the bars where the value is = 0 > counts 3 4 5 0 12 0 4 1 3 0 1 http://r.789695.n4.nabble.com/file/n4633190/1.png My aim is to write some comment in plot. http://r.789695.n4.nabble.com/file/n4633190/2.png How can i implement this? Regards -- View this message in context: http://r.789695.n4.nabble.com/How-to-write-text-in-bar-plot-in-R-tp4633190.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ 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.