Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Graph histogram center bars on labels

    Hello everyone

    I am having trouble with the command "twoway histogram varname as I want to align bars of histogram centered on labels but can't find how to do it.

    Thank you

  • #2
    Code:
    . sysuse auto, clear
    (1978 Automobile Data)
    
    . histogram rep78, discrete
    (start=1, width=1)
    
    . histogram mpg, discrete width(2)
    (start=12, width=2)

    Comment


    • #3
      Fantastic Nick. I don't understand why I didn't find the command. Thank you very much

      Comment


      • #4
        Nick Cox explain you the best way,
        also you can do it by this way
        1.Go to to " Graphics"
        2. choose " histogram"
        3. mark "data are discrete"
        4. Choose your variable
        5. submit


        Comment

        Working...
        X