Bookmark and Share

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]

st: Change justification of label in graph (stata 11)


From   "Kaulisch, Marc" <[email protected]>
To   <[email protected]>
Subject   st: Change justification of label in graph (stata 11)
Date   Mon, 10 Oct 2011 06:48:04 +0200

Hi Statalisters,

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)))


Best wishes,


Marc

*
*   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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index