Notice: On March 31, it was **announced** that Statalist is moving from an email list to a **forum**. The old list will shut down on April 23, and its replacement, **statalist.org** is already up and running.

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

From |
Ulrich Kohler <kohler@wzb.eu> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: Bar chart with several different variables on X axis |

Date |
Fri, 26 Mar 2010 12:52:46 +0100 |

Besides googling, have you also looked in the help of -graph bar-? If you type . help graph_bar##group_options you'll find an example that is similar to . sysuse auto . graph bar weight, over(for) over(rep78) Many regards Uli Am Freitag, den 26.03.2010, 11:53 +0100 schrieb Florian Köhler: > Dear Statalist, > > I am trying to generate a bar chart where I have several different variables > on the X-Axis (Var 1 to Var 3 in the example below, identically scaled) and > the according mean on the Y axis. Each of this variables should be split > into three groups according to a categorical variable "Cat" (categories A, > B,C in the example). The graph should look like that. > > mean > | > | ___ ___ > ___ > | ___ | | | | > | | > | | | | | | | ___ > ___ | | > | ___ | | | | | | ___ | | > | | | | ___ > | | | | | | | | | | | | | > | | | | | | > | | | | | | | | | | | | | > | | | | | | > | | | | | | | | | | | | | > | | | | | | > | |A| |B| |C| |A| |B| |C| > |A| |B| |C| > > -------------------------------------------------------------------------- > Var 1 Var 2 > Var 3 > > > Isn't the graph I need pretty common? I find it quite strange that I cannot > figure out how to make it work even after excessive googling ;). > > All I managed to get was a bar chart split into three groups A, B, and C > (according to the three categories in variable "cat") and for each of these > groups the mean of var 1 var2 etc was graphed. > > > Thanks for your help. > > > Florian > > __________________________________ > > > Dipl.-Kfm. Florian Köhler > Research Associate/PhD Candidate > > Technical University of Berlin > Chair for Innovation Economics > Faculty of Economics and Management > HARTING Graduiertenkolleg > > Prof. Dr. Knut Blind > > Raum 129, VWS 2 > Müller-Breslau-Straße (Schleuseninsel) > 10623 Berlin > > Tel. +49(0)30 314 - 768 55 > Fax +49(0)30 314 - 766 28 > florian.koehler@tu-berlin.de > > www.isi.tu-berlin.de > > > > > > * > * 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/ * * 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/

**Follow-Ups**:**RE: st: Bar chart with several different variables on X axis***From:*"Nick Cox" <n.j.cox@durham.ac.uk>

**References**:**st: Bar chart with several different variables on X axis***From:*Florian Köhler <florian.koehler@tu-berlin.de>

- Prev by Date:
**Re: st: Re: Finding initial feasible values for xtfrontier, ti cost version, please help!** - Next by Date:
**Re: st: log file recording within loops** - Previous by thread:
**st: Bar chart with several different variables on X axis** - Next by thread:
**RE: st: Bar chart with several different variables on X axis** - Index(es):