bar chart print counts on the bars

21 views
Skip to first unread message

Sohail Khan

unread,
Jul 19, 2013, 3:42:12 PM7/19/13
to ggp...@googlegroups.com
Dear All,

I have generated a bar chart for counts, and I would like to the counts on each bar.
Thanks for any suggestion.

-Sohail

Roman Luštrik

unread,
Jul 19, 2013, 6:59:02 PM7/19/13
to Sohail Khan, ggp...@googlegroups.com
I googled "label barchat ggplot2" and got this: http://stackoverflow.com/questions/11653268/adding-labels-to-ggplot-bar-chart

Cheers,
Roman



--
--
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example: https://github.com/hadley/devtools/wiki/Reproducibility
 
To post: email ggp...@googlegroups.com
To unsubscribe: email ggplot2+u...@googlegroups.com
More options: http://groups.google.com/group/ggplot2
 
---
You received this message because you are subscribed to the Google Groups "ggplot2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ggplot2+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
In God we trust, all others bring data.

Greg Snow

unread,
Jul 20, 2013, 4:07:11 PM7/20/13
to Sohail Khan, ggplot2
See the discussion that starts with this post: https://stat.ethz.ch/pipermail/r-help/2007-August/138145.html


Read through all the replies for the full discussion.  Those posts refer to base graphics, but the ideas discussed apply to any tools for creating bar plots, including ggplot2.

The short message from the above discussions is that you should not feel the need to reduce useful and beautiful graphs to look like something from a spreadsheet, rather accept the wonderful results from ggplot2 without uglification.  If you do feel the need to add additional information, then do it the right way that adds value to your graph rather than detracts from it.


--
--
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example: https://github.com/hadley/devtools/wiki/Reproducibility
 
To post: email ggp...@googlegroups.com
To unsubscribe: email ggplot2+u...@googlegroups.com
More options: http://groups.google.com/group/ggplot2
 
---
You received this message because you are subscribed to the Google Groups "ggplot2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ggplot2+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Gregory (Greg) L. Snow Ph.D.
538...@gmail.com
Reply all
Reply to author
Forward
0 new messages