Announcement

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

  • #16
    Perhaps use the graph editor with graph.

    Code:
    * Example generated by -dataex-. To install: ssc install dataex
    clear
    input byte seminar_series_mod_num int video_name_num byte first_obs
    0 2 1
    0 2 0
    0 2 0
    0 3 1
    0 3 0
    0 3 0
    0 3 0
    0 3 0
    0 3 0
    0 3 0
    0 3 0
    0 4 1
    0 4 0
    0 4 0
    0 4 0
    0 4 0
    1 1 1
    1 1 0
    1 1 0
    1 1 0
    1 1 0
    1 2 1
    1 2 0
    1 2 0
    2 3 0
    2 4 1
    2 4 0
    2 5 0
    2 80
    3 1 0
    3 2 1
    3 3 0
    3 4 0
    3 5 0
    4 1 1
    4 1 0
    4 2 0
    end
    
    set scheme s1mono
    contract seminar_series_mod_num video_name_num
    contract seminar_series_mod_num, freq(count)
    sort count seminar_series
    gen long overid=_n
    
    quietly sum count
    local max= r(max)
    
    gr bar count, over(overid, label(nolab))  text(-0.12 25  "25%") text(-0.12 50  "50%") ///
    text(-0.12 75  "75%")  plotregion(margin(zero))  ytitle("")
    foreach num of numlist 25 50 75{
         gr_edit .plotregion1.AddLine added_lines editor `num' `max' `num' 0
    }
    Click image for larger version

Name:	Graph.png
Views:	1
Size:	14.0 KB
ID:	1733106

    Comment


    • #17
      It's what I wanted! Thanks a lot

      Comment

      Working...
      X