Amelie LESCROEL wrote:
> ...
> I obtain this kind of histogram (what I actually want), i.e. large bars with
> no space between them
> 
>  ...
> I obtain a strange histogram with the first 2 bars grouped together and then
> thin bars (not occupying the entire bin width) separated by spaces.
> 
> ... 
> 
> I suspect that it’s causing me some troubles to fit my data to a probability
> density function. Using:
> 
Hi Amelie,

Them's the breaks. Try this:

hist(test,breaks=-1:7)

and you should get what you want.

Jim

______________________________________________
R-help@stat.math.ethz.ch 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.

Reply via email to