Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

RE: st: Graph for three variables


From   Red Owl <[email protected]>
To   <[email protected]>
Subject   RE: st: Graph for three variables
Date   Sun, 12 Jan 2014 23:21:13 -0500

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.

Red Owl
[email protected]
*
*   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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index