You are not logged in. You can browse but not post. Login or Register by clicking 'Login or Register' at the top-right of this page. For more information on Statalist, see the FAQ.
I have been making some histograms however I've had problems with the presentations of them. There should not be problems with the distance between the bins, why is it? (there are no problems with frequency, etc. Can I make them perfect? Or is it my Stata version (11.1)?
I totally agree with Svend – unless you provide the syntax and data producing the graph (ideally, as a minimal working example), it is hard to tell where your problem originates from.
As a quick guess: I suspect your variable "testing" is discrete, not continuous. If so, you should use -histogram-'s option -discrete-; compare the histograms in this example:
Code:
clear all
sysuse auto
histogram rep78 , name(continuous) nodraw
histogram rep78 , name(discrete) discrete nodraw
graph combine continuous discrete
Thank you for your answers. I spent a lot of time figuring out what the problem was and it was as Daniel said, discrete option. Anyway, I don't understand why if it was continuous it should have spaces between the bins. The data has numbers like 20, 25, 30, 35, 40... The spaces don't have the same distance... If you could tell me I would be very thankful. Thanks.
Comment