Re: [R] how to make a histogram with percentage on top of each bar?

2012-06-22 Thread Deepayan Sarkar
On Thu, Jun 21, 2012 at 10:56 PM, york8866 yu_y...@hotmail.com wrote: I have a dataset like the following: ID      DV 1       0.868576818 2       0.337120116 3       0.029233775 4       0.719783525 5       0.976631182 6       0.672941605 7       0.13239462 8       0.99936475 9      

Re: [R] how to make a histogram with percentage on top of each bar?

2012-06-22 Thread Mohan Radhakrishnan
Hi, Stackoverflow had an example. Forgot the contributor's name but it shows percentages at the top. I use it as it is as I am not the expert. png(Histogram.png) pdata-read.csv(histogram.csv,header=T) histPercent - function(x, ...) { H - hist(pdata$y, plot = FALSE) H$density -

Re: [R] how to make a histogram with percentage on top of each bar?

2012-06-22 Thread Jim Lemon
On 06/22/2012 03:26 AM, york8866 wrote: I have a dataset like the following: ID DV 1 0.868576818 2 0.337120116 3 0.029233775 4 0.719783525 5 0.976631182 6 0.672941605 7 0.13239462 8 0.99936475 9 0.91540604 10 0.545686514 to get a

Re: [R] how to make a histogram with percentage on top of each bar?

2012-06-22 Thread york8866
Thank you all for the help, York -- View this message in context: http://r.789695.n4.nabble.com/how-to-make-a-histogram-with-percentage-on-top-of-each-bar-tp4634131p4634203.html Sent from the R help mailing list archive at Nabble.com. __

[R] how to make a histogram with percentage on top of each bar?

2012-06-21 Thread york8866
I have a dataset like the following: ID DV 1 0.868576818 2 0.337120116 3 0.029233775 4 0.719783525 5 0.976631182 6 0.672941605 7 0.13239462 8 0.99936475 9 0.91540604 10 0.545686514 to get a histogram with y axis as percentage, I

Re: [R] how to make a histogram with percentage on top of each bar?

2012-06-21 Thread arun
HI, Probably this link will be useful to you (http://stackoverflow.com/questions/9317948/how-to-label-histogram-bars-with-data-values-or-percents-in-r). A.K - Original Message - From: york8866 yu_y...@hotmail.com To: r-help@r-project.org Cc: Sent: Thursday, June 21, 2012 1:26 PM