[R] histogram breaks

casperyc casperyc at hotmail.co.uk
Fri Apr 16 21:56:00 CEST 2010

+ sample(10:19,8,T),
+ sample(20:24,15,T),
+ sample(25:29,25,T),
+ sample(30:39,18,T),
+ sample(40:49,12,T),
+ sample(50:64,7,T),
+ sample(65:89,5,T)
+ )


can give me a histogram,

however, how do i get a different 'breaks'?

i want to be break down into the intervals
as my 'sample'?

i.e. the 1st interval is 10:19
           2nd              20:24
          3rd                25:29

as the Q2


View this message in context: http://n4.nabble.com/histogram-breaks-tp2013487p2013487.html
Sent from the R help mailing list archive at Nabble.com.

More information about the R-help mailing list