=============================== Q2=c( + 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) + ) ================================
hist(Q2) 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 Thanks! casper -- View this message in context: http://n4.nabble.com/histogram-breaks-tp2013487p2013487.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.