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: Bar chart with several different variables on X axis
From
Ulrich Kohler <[email protected]>
To
[email protected]
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
> [email protected]
>
> 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/