Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: RE: bar graph of multiple variables


From   "Clive Nicholas" <[email protected]>
To   [email protected]
Subject   Re: st: RE: bar graph of multiple variables
Date   Sun, 6 Mar 2005 19:59:26 -0000 (GMT)

Scott Merryman replied to Richard Sherman:

> How about something like this:
>
> sysuse auto
>
> graph bar (count) mpg, over(rep) over(fore)

Another way to get closer to what Richard requires would be to use Nick
Cox's -catplot- routine, downloadable via SSC. Using this would allow him
to do something like:

. catplot bar continuousvar, over(discretevar) sort percent asyvars

But even this doesn't quite do what Richard wants, which is to bar-graph
seven _individual_ variables which all have (presumably) the same three
categories _without_ having to specify an -over()- option. Like Richard, I
couldn't quite crack it.

CLIVE NICHOLAS        |t: 0(044)7903 397793
Politics              |e: [email protected]
Newcastle University  |http://www.ncl.ac.uk/geps

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