Announcement

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

  • Scale break

    I have a dataset with 79 observations. I am using Stata 13.1
    I used the

    Code:
    graph box AFP, over(pyap_dic) title(AFP and pYAP)
    and I obtained this graph:

    Graph.gph

    There is a big gap between 1500 and 4200 so I would like to create a scale break before showing the two "outliers".
    I did read http://www.stata.com/support/faqs/gr.../scale-breaks/. My understanding from that website is that although scale breaks are not recommended, they can still be created.

    so I tried:
    Code:
    gen AFP_break = cond(AFP == 4000, 0, AFP)
    label def AFP_break 0 "4000"
    label val AFP_break AFP_break
    label var AFP_break AFP
    graph box AFP_break, over(pyap_dic) ylabel (0 3000 7000, valuelabel) title(AFP and pYAP) yline(4000)
    And it gave me this:

    Graph2.gph

    Which is not what I want. I only want the scale to be shorten between 1500 and 4200.

    Is it possible to do so?

    Thank you,

    JM Giard
Working...
X