Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: Change justification of label in graph (stata 11)
From
Nick Cox <[email protected]>
To
[email protected]
Subject
Re: st: Change justification of label in graph (stata 11)
Date
Mon, 10 Oct 2011 14:49:38 +0100
As you say, this is really about -graph bar- (or -graph hbar-,
although I don't think the difference matters).
Like you, I can't see any such option in the help or within the Graph Editor.
Nick
On Mon, Oct 10, 2011 at 5:48 AM, Kaulisch, Marc
<[email protected]> wrote:
> I wrap a long label into two lines but now I want them to appear as
> centered (in a graph bar; actually using -catplot- from ssc). I cannot
> find a way to do it in the cat_axis_label_options. Does someone knows a
> way to do this?
>
> The right justification for the relabel two lines looks a little bit
> silly; as you can see in example:
> Sysuse nlsw88, clear
> Egen ex = group(industry race)
> Catplot union industry race, percent(ex) stack var3opts(relabel(1
> `""White""example""' 2 `""Black""example""' 3 `""Other""example""'))
>
> A preliminary solution for me is to skip the two line option and make a
> vertical angle:
> Catplot union industry race, percent(ex) stack
> var3opts(label(angle(vertical)))
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/