Dear users,
I would like to know your opinion about an apparently simple question. I am not succeeding in saying Stata to use two different ranges and labels for the two graphs I am creating with the -twoway- command. More precisely, I am not able to set the second axis options.
The code I am using is the following:
the data:
Do you have any clue? Thanks a lot, best, G.
I would like to know your opinion about an apparently simple question. I am not succeeding in saying Stata to use two different ranges and labels for the two graphs I am creating with the -twoway- command. More precisely, I am not able to set the second axis options.
The code I am using is the following:
Code:
twoway scatter origin media , by(simpt) mcolor(emidblue) xaxis(1) xscale(range(4.6 5.2)) xaxis(2) xscale(range(6.0 7.0)) || rcap lower upper origin, horiz lcolor(emidblue) scheme(s1mono)
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float(media lower upper) byte(origin simpt) 4.09065 4.063758 4.117542 1 1 4.056681 4.038801 4.074561 2 1 4.000973 3.975708 4.026239 3 1 5.066667 5.024275 5.109058 1 2 5.025707 4.998073 5.053341 2 2 4.939974 4.901125 4.978823 3 2 end
Comment