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: Twoway by option
From
Maarten buis <[email protected]>
To
[email protected]
Subject
Re: st: Twoway by option
Date
Mon, 21 Mar 2011 16:37:58 +0000 (GMT)
--- On Mon, 21/3/11, Steven Archambault wrote:
> I have been using the below command to generate graphs
> for different schools. The graphs appear in
> alphabetical order of school_name, where I'd rather them be
> in order of their adv_avg value (highest to lowest).
> twoway <snip>, by(school_name, style(compact))
Yes, download -egenmore- (-ssc install egenmore-) and type:
gen m_adv_avg = -adv_avg
egen Sch = axis(m_adv_avg school_name), label(school_name)
twoway ..., by(Sch)
Hope this helps,
Maarten
--------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany
http://www.maartenbuis.nl
--------------------------
*
* 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/