I want to move the xtitle to the right and the above of the xaxis.This is my data and code:
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input double(age Riskasset Stock) 1 3800 3000 2 5100 3500 3 4000 3800 4 3200 2750 5 3980 3100 6 3000 2950 end
Code:
twoway connected Riskasset age ||connected Stock age,lp(dash) xscale(range(0.5 6.5)) /// xlabel( 1 "25+" 2 "25-34" 3 "35-44" 4 "45-50" 5 "51-60" 6 "60+", noticks) /// ylabel(0(1000)6000,grid) xtitle("Age") ytitle(,height(5)) /// xtick(0.5(1)5.5,tposition(inside)) /// legend(label(1 "Risk Asset") label(2 "Stock Asset")) /// scheme(s1mono)
0 Response to Question about xtitle of graph
Post a Comment