Announcement

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

  • Editing the IRF graphs

    Greetings.

    I am having trouble to get the IRF graphs to take up the same area. I am using the same code for both graphs but the on Interest Rate is leaving a huge space on the left. I would like the Interest Rate graph to look like the one of real output. Any advice would be very much appreciated.

    Thank you very much.

  • #2
    It would be easier to help if you had included the command that you used to create the graphs (see section 12 in the FAQ).

    You can modify the left margin of the graph with the graphregion(margin()) option. Note that you can use negative values, such as graphregion(margin(-10 2 2 2)).
    Code:
    help region_options

    Comment


    • #3
      Originally posted by Friedrich Huebler View Post
      It would be easier to help if you had included the command that you used to create the graphs (see section 12 in the FAQ).

      You can modify the left margin of the graph with the graphregion(margin()) option. Note that you can use negative values, such as graphregion(margin(-10 2 2 2)).
      Code:
      help region_options

      Apologies, as this is the first time I am posting on this forum.

      These are the two commands that I have entered (the first one for interest rate and the second one for inflation):

      irf graph sirf, set(resHK_FUT) irf(PresHK_FUT) impulse(ff1comdty) response (IR) level(90) byopts(legend(off)) ylabel(-.2(.04).2, labsize(vlarge)) title("Hong Kong Interest Rate", size(vhuge)) subtitle("") byopts(note("")) xtitle("") xlabel(0(6)24, labsize(vlarge)) yline(0, lcolor(black) lwidth(0.8)) byopts(graphregion(color(white))) byopts(plotregion(color(white))) byopts(bgcolor(white)) ciopts1 (recast(rline) lpattern(dash) lcolor(gs9))


      irf graph sirf, set(resHK_FUT) irf(PresHK_FUT) impulse(ff1comdty) response (lnipi) level(90) byopts(legend(off)) ylabel(-.01(.002).01, labsize(vlarge)) title("Hong Kong Real Output", size(vhuge)) subtitle("") byopts(note("")) xtitle("") xlabel(0(6)24, labsize(vlarge)) yline(0, lcolor(black) lwidth(0.8)) byopts(graphregion(color(white))) byopts(plotregion(color(white))) byopts(bgcolor(white)) ciopts1 (recast(rline) lpattern(dash) lcolor(gs9))

      Thank you very much.

      Comment


      • #4
        Did you try the graphregion(margin()) option that I proposed?

        Comment


        • #5
          Thank you very much! It worked!

          Comment

          Working...
          X