Bookmark and Share

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]

st: ylines with two y-axes


From   "Ivica Rubil" <[email protected]>
To   <[email protected]>
Subject   st: ylines with two y-axes
Date   Wed, 25 Jul 2012 14:01:22 +0200

Dear all,

here's my problem. Below is my code for a graph with two y-axes:

twoway (line gic_L p, sort yaxis(1) lcolor(red) yline(`a_mean')) || ///
       (line gic_R p, sort yaxis(2) lcolor(blue) yline(`g_mean'))

But, the trouble is that Stata gives me a graph on which both ylines are
associated with the same axis. So, how can I specify which yline refers
to which of the two y-axes?

Thanks.

ir

--
Ivica Rubil
Ekonomski institut || The Institute of Economics, Zagreb
Trg J. F. Kennedyja 7, 10 000 Zagreb, Croatia
tel. +385-1-2362-269 || fax. +385-1-2335-165
[email protected] || www.eizg.hr



*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index