Displaying 1 result from an estimated 1 matches for "tp3051923p3052067".
2010 Nov 20
3
how to add frequencies to barplot
Hi,
I have count data
x2=rep(c(0:3),c(13,80,60,27))
x2
0 1 2 3
13 80 60 27
I want to graph to be ploted as
barplot(table(x2),density=4)
how do I add relative frequency to it, like in
hist(x2,labels=T)
above the 'bar's
Thanks.
casper
--
View this message in context: http://r.789695.n4.nabble.com/how-to-add-frequencies-to-barplot-tp3051923p3051923.html
Sent from the R help