Statalist


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

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


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: RE: Ordering bar graphs by yvar value (was: Suggestions for Second Edition of A Visual Guide to)
Date   Fri, 24 Aug 2007 19:14:41 +0100

Don't feel too much chagrin. I don't understand very 
well what -catplot- can and can't do myself. The 
main reason for that: it is essentially a wrapper for
some calls to -graph-, and I'm still discovering the 
potentialities of what was introduced in -graph- in Stata 8. 

For anyone watching, there is some discussion of these issues
in 

FAQ     . . . . . . . . . . . . . . . . . . Creating percent summary variables
        . . . . . . . . . . . . . . . . . . . . . .  N. J. Cox and S. Merryman
        11/05   How can I create variables containing percent
                summaries?
                http://www.stata.com/support/faqs/data/percentvars.html

SJ-4-2  gr0004  .  Speaking Stata: Graphing categorical and compositional data
        . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  N. J. Cox
        Q2/04   SJ 4(2):190--215                                 (no commands)
        discusses graphical possibilities for categorical and
        compositional data

Nick 
n.j.cox@durham.ac.uk 

David Radwin
 
> 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

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