Dears
I am trying to place side by side box for the year 2016 and 2006. I was not able to use by with rbar and with the following command the two sets of information overlap. Is there a way to put the two boxes side by side? I copy the data I used and the code.
Thank you in advance
I am trying to place side by side box for the year 2016 and 2006. I was not able to use by with rbar and with the following command the two sets of information overlap. Is there a way to put the two boxes side by side? I copy the data I used and the code.
Thank you in advance
Code:
twoway rbar lqt med Reg, pstyle(p1) barw(.6) || /// rbar med uqt Reg, pstyle(p1) barw(.6) || /// rspike lqt ls Reg, pstyle(p1) || /// rspike uqt us Reg, pstyle(p1) || /// rcap ls ls Reg, msize(*6) pstyle(p1) || /// rcap us us Reg, msize(*6) pstyle(p1) || /// scatter highest Reg, msymbol(Oh) msize(*2) || /// scatter lowest Reg, msymbol(Oh) msize(*2) /// xlabel( 1 "A" 2 "B" 3 "C" 4 "D" 5 "E") ytitle(price)
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float(Regions med lqt uqt ls us highest lowest year) 1 28 27 30 22.5 34.5 55 10 2016 2 32 30 35 22.5 42.5 65 24 2016 3 30 29 33 23 39 48 10 2016 4 27 26 30 20 36 57 19 2016 5 30 20 45 -17.5 82.5 86 0 2016 1 35 32 38 23 47 56 10 2006 2 36.5 33 40 22.5 50.5 70 21 2006 3 35 33 36 28.5 40.5 49 24 2006 4 36 34 39 26.5 46.5 49 22 2006 5 29 10 43 -39.5 92.5 90 0 2006 end label values Regions reg label def reg 1 "A", modify label def reg 2 "B", modify label def reg 3 "C", modify label def reg 4 "D", modify label def reg 5 "E", modify
Comment