I plot the chart as below
Code:
twoway (scatter var1 rev, sort) (scatter var2 rev, sort yaxis(2) msymbol(square_hollow)), /// ylabel(0(100)500) by(, note("")) by(, legend(off)) by(periods) ytitle("1st title", axis(1)) ytitle("2nd-title", axis(2))
Could someone show me what is wrong with my plotting code? Note: I use Stata 15.
Many thanks.
Array
0 Response to Set title for the second y-axis in scatter chart with by()
Post a Comment