Skip to content

Help with histogram intervals

3 messages · Gwanmesia at aol.com, Joshua Wiley, David Winsemius

#
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, by = 2))

HTH,

Josh
On Mon, Jun 27, 2011 at 4:23 PM, <Gwanmesia at aol.com> wrote:

  
    
#
On Jun 27, 2011, at 8:36 PM, Joshua Wiley wrote:

            
And if you are using histogram() you should be looking at , ...  
surprise, surprise, ... the breaks argument.
David Winsemius, MD
West Hartford, CT