Statalist


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

st: Graph bar using the over option


From   "Kate McAllister" <k.mcallister@ucl.ac.uk>
To   statalist@hsphsun2.harvard.edu
Subject   st: Graph bar using the over option
Date   Wed, 25 Mar 2009 11:58:51 -0000 (GMT)

This is probably a really simple thing, but I've looked for an answer and
I can't find one.

I want to create a bar graph displaying several variables over 3 different
time periods. If I type:
graph hbar (sum) variable1 variable2 variable3 variable4, over(timeperiod)

then I get a graph that displays all the variable values for timeperiod1
clustered together, then all the variable values for timeperiod2, and then
for timeperiod3.

What I actually want is a graph the displays the variable1 values over the
three time periods, THEN the variable2 values over the three time periods,
then  the variable3 values... and so on, all on one graph.

What am I doing wrong?

Many thanks

K

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