(sacrifice)
-----Original Message-----
From: Nick Cox
Sent: 18 April 2008 10:59
To: '[email protected]'
Subject: RE: st: add xtitle to -graph bar-
Correction: this is all documented. I don't know where I got the idea
that the
-??title()- options are not documented. Sorry about that.
Nick
[email protected]
Nick Cox
Remembering -- or understanding -- this solution depends on knowing that
the new Stata graphics (8 up) includes undocumented title options.
A quick experiment shows that -l1()- -l2()- -r1()- -r2()- -b1()- -b2()-
-t1()- -t2()- are all available for at least some graphs.
Those who recall the old graphics will recall these as being titles on
the _l_eft, _r_ight, _b_ottom and _top_, 1 being on the outside
and 2 being inside of that.
A trick that is much closer to being documented is
graph bar (mean) weight length trunk mpg, by(for, note(Mean values))
except that Zhiqiang would probably want to add suboptions to move the
-note()- and change the text size.
If the -note()- were in use, then the -caption()- or the -title()- may
well be available.
Nick
[email protected]
Scott Merryman
On Thu, Apr 17, 2008 at 7:43 AM, Zhiqiang Wang <[email protected]> wrote:
> I thank Maarten and Svend for the suggestions.
>
> I do want -xtitle-. The example was to demonstrate my problem. As
> suggested by Maarten, creating the data set first and plot them using
> -twoway bar- works. I just feel it would be handy if -graph bar-
allows
> -xtitle-.
>
> Using -b1title- adds the same title to each graph, I would like to
have
> one title for all graphs.
Add the -b1title() to the -b()- statement.
graph bar (mean) weight length trunk mpg, by(for,b1title(Mean values))
*
* 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/