Re: [R] hist clarification

From: Deepayan Sarkar <>
Date: Tue, 20 May 2008 12:11:30 -0700

On 5/20/08, John Gant <> wrote:
> Can someone help me with a misunderstanding I'm having with hist? I
> expected, from the example below, that the number of bins would always be 10
> and the length of the counts array the same. According to the help section
> 'breaks' can be a integer indicating the number of bins.

The help actually says:

  breaks: one of:

          In the last three cases the number is a suggestion only.

The last sentence explains your observation.

BTW, this was recently discussed:

-Deepayan mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Tue 20 May 2008 - 19:16:31 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 20 May 2008 - 20:32:11 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive