Re: [R] Help with histogram intervals

2011-06-27 Thread David Winsemius
On Jun 27, 2011, at 8:36 PM, Joshua Wiley wrote: Hi Ivo, It depends how you are making the histogram plot. If you are using the traditional graphics hist() function, And if you are using histogram() you should be looking at , ... surprise, surprise, ... the breaks argument. then look a

Re: [R] Help with histogram intervals

2011-06-27 Thread Joshua Wiley
Hi Ivo, It depends how you are making the histogram plot. If you are using the traditional graphics hist() function, then look at the argument, "breaks" (type ?hist at the console to pull up the documentation explaining this). For example: hist(x = sample(1:20, 300, TRUE), breaks = seq(0, 20, b

[R] Help with histogram intervals

2011-06-27 Thread Gwanmesia
Dear Sir, How do I change the intervals on the x axis of a histogram plot; let us say for example the intervals were 0,5,10,15,and 20, and I wanted to change the intervals to 0,2,4,6,8,10,12,14,16,18,20. I look forward to receiving your words of wisdom. Ivo [[alternative HTML ver