Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: second y-axis in graph bar


From   Harry Telser <telser@soi.unizh.ch>
To   statalist@hsphsun2.harvard.edu
Subject   st: second y-axis in graph bar
Date   Wed, 29 Nov 2006 17:02:30 +0100

Dear Statlist users

I want to draw a bar chart with two y-variables relating to two different axes.

The graph should look something like that:

. sysuse auto
. graph bar weight length, over(rep78)

but with "length" relating to a second y-axis on the right side.

Is there any way to define a second y-axis in "graph bar" command? I know it can be done with "twoway bar" but I did not manage to get the look as in "graph bar".

Any help is appreciated.

Harry

--
***
Dr. Harry Telser
Socioeconomic Institute
University of Zurich
Hottingerstr. 10
CH-8032 Zurich

phone: +41 1 634 06 07
fax: +41 1 634 49 87
mail: telser@soi.unizh.ch
web: http://www.soi.unizh.ch/staff/telser/index2.html

*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* 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   |   What's new   |   Site index