Re: [R] Changing x-axis values displayed on histogram

2012-07-10 Thread jlwoodard
Perfect! Thanks so much, Sarah! -- View this message in context: http://r.789695.n4.nabble.com/Changing-x-axis-values-displayed-on-histogram-tp4636032p4636051.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailin

Re: [R] Changing x-axis values displayed on histogram

2012-07-10 Thread Sarah Goslee
Hi, Thanks for providing a small reproducible example. You can disable the default axis and make your own custom version: hist(histexample,breaks=bins, xaxt="n") axis(1, at=seq(5.5, 15.5, by=2), labels=c("5-6", "7-8", "9-10", "11-12", "13-14", "15-16")) Sarah On Tue, Jul 10, 2012 at 3:34 PM, j