Regarding the legend options, a -legend()- option inside the -by()- will
alter its position, while a -legend()- option outside the -by()- will alter
its contents. For example:
irf graph irf, irf(test_irf) byopts(title(My Title) yrescale ///
xrescale note("") legend(pos(3) )) legend(stack col(1) ///
order(1 "95% CI" 2 "IRF") symx(*.5) size(vsmall)) xtitle("Year")
Regarding the -xtitle- , are not all the titles the same in such a graph?
To have individualized subtitles, I think you will have to create the graphs
individually and then combine them or perform surgery on varirf_graph.ado.
Scott
> -----Original Message-----
> From: [email protected] [mailto:owner-
> [email protected]] On Behalf Of Michael S. Hanson
> Sent: Thursday, June 15, 2006 2:23 PM
> To: [email protected]
> Subject: Re: st: RE: Modifying -irf graph- output
>
> .
>
> [Note: I have edited my original questions and Scott's reply to
> clarify further comments.]
>
> On Jun 15, 2006, at 12:53 PM, Scott Merryman wrote:
>
> > On Jun 15, 2006, at 12:27 PM, I wrote:
> >>
> >> 1. How does one add a title to the whole plot?
> >>
> >> 2. How does one change the text of and/or remove the legend and
> >> the note?
> >>
> >> 3. How does one change/control the axis labels and titles? In
> >> particular, I want to either change or delete the text that reads
> >> "step" by default beneath the final row of subplots.
> >
> > For 1. and 2. take a look at -byopts- option and the axis title can
> > be added at the end.
> >
> > For example:
> >
> > irf graph irf, irf(test_irf) byopts(title(My Title) note("") ///
> > legend(off)) xtitle(Years) ytitle(My ytitle)
>
> Thanks, Scott -- I had misinterpreted what -byopts- was designed to
> do, so I had not explored that option. -byopts(title())- resolves my
> first question above. I appreciate your or anyone else's input on
> aspects of these remaining questions:
>
> 2. -byopts(legend())- seems to support only a subset of the options
> of -legend-: basically, I have been able to get -off- and -pos()- to
> work, but none of the other options of -legend- I have tried (e.g., -
> order()-, -stack-, -size()-, -symx()-). Is this a "feature"? Or am
> I missing something?
>
> 3. The -xtitle- option (*outside* of -byopts-) addresses in part
> what I was after in the third question. However, -xtitle- only
> applies to the whole final row of subplots, as does -xlabel-. Is
> there a way to modify the x-axes on the other rows? (Or the y-axes
> for any column other than the first?)
>
> 4. An additional question, if I may be so bold: I would like to
> change the subtitles at the top of each subplot in a way that still
> conveys which response and impulse are plotted. For example, instead
> of "test_irf, lconsumption, lincome", I would like the (1,2) subplot
> to read, say, "Response of log(Y) to a log(C) shock". The -subtitle-
> option will allow one to change the text at the top of each subplot,
> but I haven't figured out how to specify the response and impulse
> variables within this option. Perhaps if it were possible to extract
> specific elements of r(response) and r(impulse)...? Also, I had
> hoped that labeling the variables would change what was shown in the
> subtitles, but (apparently) to no avail.
>
> Thanks again for your assistance.
>
> -- Mike
>
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/