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 <>
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.


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

* For searches and help try:

© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index