[R] Histogram

Sarah Goslee sarah.goslee at gmail.com
Thu Jul 5 21:34:06 CEST 2012

Hi Jim,

You can't specify both number of bins and bin size. You can specify
breaks: either the number of bins or the location of breakpoints. A
histogram with 20 bins of 50 observations each must by definition come
from a uniform distribution.

What are you trying to accomplish?


On Thu, Jul 5, 2012 at 3:29 PM, Jim Silverton <jim.silverton at gmail.com> wrote:
> I have a column of 1000 datapoints from the normal distribution with mean 2
> and variance 4. How can I get a histogram of these observations with 20
> bins with each bin having 50 observations?
> --
> Thanks,
> Jim.

Sarah Goslee

More information about the R-help mailing list