Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: st: graphing problems


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: graphing problems
Date   Thu, 27 Nov 2008 12:01:14 -0000

Some further suggestions for Moleps on 1). 

-catplot- is a user-written program on SSC. (Please recall the request
to explain where user-written stuff you refer to comes from.) 

Moleps is using the -graph bar- option -over()- as part of his call to
-catplot-. The help for -graph bar- explains that you can insert
sub_options into the -over()- call. 

If that does not serve, you need to re-order your categories beforehand:
that is, it is a data management problem. In addition to Maarten's
suggestion, note -recode-. 

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

Maarten buis

--- moleps islon <moleps2@gmail.com> wrote:

> 1)After having created a barplot using catplot is there a way to
> reorder the categories? I suspect not-but redoing the catplot command
> - catplot bar x, over(y) asyvars stack perc(y) - I still cannot
> figure out how to determine the ordering of the categories...(the
> peer-reviewer specifically requested a specific ordering of the
> categories)

The -axis()- function within the -egenmore- package is specifically
designed to deal with that problem. You can download -egenmore- from
SSC by typing -ssc install egenmore-.
 

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index