Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

st: Bar chart with several different variables on X axis


From   Florian Köhler <florian.koehler@tu-berlin.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Bar chart with several different variables on X axis
Date   Fri, 26 Mar 2010 11:53:52 +0100

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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index