Re: [R] hist clarification

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

On 5/20/08, John Gant <john.gant_at_gmail.com> 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:

https://stat.ethz.ch/pipermail/r-help/2008-May/162492.html

-Deepayan



R-help_at_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. 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 https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive