Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Nick Cox <njcoxstata@gmail.com> |
To | "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu> |
Subject | Re: st: Graph for three variables |
Date | Mon, 13 Jan 2014 12:07:24 +0000 |
The structure and character of the data are not clear here. Assuming that the data refer to people, it seems unlikely that one and only one food group was consumed on each day. That being so, the numbers of days are not additive. Nick njcoxstata@gmail.com On 13 January 2014 04:21, Red Owl <rh.redowl@liu.edu> wrote: > Almazea, > > Perhaps you could do something like this: > > ** Begin Stata code *** > graph bar (mean) days, hor over(food) over(region) /// > asyvars bargap(10) stack percentages name(graph1) > > graph bar (mean) days, hor over(food) /// > asyvars bargap(10) stack percentages name(graph2) > > graph combine graph1 graph2, rows(1) name(combined) > *** End Stata code*** > > If you would rather have vertical bars, just remove > -hor- from the options above. * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/faqs/resources/statalist-faq/ * http://www.ats.ucla.edu/stat/stata/