Hello,
First time using datex. Hope this output is fine for you.
I'm trying to create a twoway connected graph with with two y variables (lower_limit and bigger_limit) and one x variable (bin). The two y variables where created by using:
The question I have now is, I want the connect points for both y variables to have the "diamond-style". But whenever I use
msymbol(D), it always applies the diamonds only to lower_limit connection points not for the connection points from bigger_limit. Also same problem applies to color(red). It only colors the lower_limit. I cannot figure out how to apply for both. Couldnt find anything about in the options.
Hope someone can help.
First time using datex. Hope this output is fine for you.
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float(bin change lower_limit bigger_limit) 2500 .12441248 .12441248 . 3000 .4294294 .4294294 . 3500 .4662447 .4662447 . 4000 .43055555 .43055555 . 4500 .51055557 .51055557 . 5000 .5265151 . . 5500 .5465278 . .5465278 6000 .5086806 . .5086806 6500 .5345529 . .5345529 7000 .58219033 . .58219033 end
Code:
gen lower_limit = change if bin < 4750 & bin > 2000 gen bigger_limit = change if bin > 5250
Code:
twoway connected lower_limit bigger_limit bin if bin != 5000 & bin > 2000, msymbol(D) xlabel(2500(500)7500) xtitle("") xlabel(3000 "3000" 4000 "4000" 5000 "5000" 6000 "6000" 7000 "7000") ylabel(.30(.10)0.7) ytitle("") xline(5000) color(red) title("") || lfit lower_limit bin, lcolor(red) lpattern(dash) || lfit bigger_limit bin, lcolor(brown) lpattern(dash)
Hope someone can help.
Comment