Hi,

Any suggestions on how to put a title on the second y-axis when combining multiple y-axes with the by-option?

Code:
sysuse auto, clear
twoway (scatter price rep78, yaxis(1)) (scatter mpg rep78, yaxis(2)), by(foreign) ytitle("title1", axis(1)) ytitle("title2", axis(2))
There are no problems if I delete by(foreign).

Thanks