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: graph pie with variable label as title
From
Nick Cox <[email protected]>
To
"[email protected]" <[email protected]>
Subject
Re: st: graph pie with variable label as title
Date
Fri, 7 Mar 2014 10:30:04 +0000
Do you mean some variant on this?
sysuse auto
foreach v in rep78 foreign headroom {
di "Would another chart work better?"
graph pie, title("`: var label `v''") over(`v')
}
Nick
[email protected]
On 7 March 2014 09:31, Nick Bornschein <[email protected]> wrote:
> Hi,
>
> I want to create a lot of pie charts with a loop. The loop itself works fine
> but I want to add a title to each pie chart which should be the variable
> label of each variable. How could I get that to work?
>
> -Nick
> *
> * For searches and help try:
> * http://www.stata.com/help.cgi?search
> * http://www.stata.com/support/faqs/resources/statalist-faq/
> * http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/