Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: RE: Ordering bar graphs by yvar value (was: Suggestionsfor Second Edition of A Visual Guide to)


From   David Radwin <radwin@berkeley.edu>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: RE: Ordering bar graphs by yvar value (was: Suggestionsfor Second Edition of A Visual Guide to)
Date   Fri, 24 Aug 2007 10:36:36 -0700

Nick,

Thank you very much for this solution. As promised, I am delighted, but also slightly chagrined that I couldn't figure it out myself.

So I revise my earlier suggestion for the 2nd edition of Michael N. Mitchell's Visual Guide to Stata Graphics to:

Please include some examples employing user-written programs, such as Nick Cox's -catplot- and -tabplot- (available at SSC), for graphing categorical data.

David


Your graph can be produced directly by

. sysuse auto, clear
. catplot hbar foreign rep78, percent(foreign) asyvars
--
David Radwin, Principal Analyst // radwin@berkeley.edu
Office of Student Research, University of California, Berkeley
2223 Fulton St # 2032, Berkeley, CA 94720-2032
Tel. 510.642.2097; Fax 510.642.2894
*
*   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/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index