I am trying to draw a twoway graph using employment data by Industry. Diffz contains the employment values while CZtime indicates the timing of the data. As the outcome graph doesn't sit in the middle of the graph, I added ylabel option based on the values on diffz, but the location of the lines are still the same as before (please see 'with ylabel.gph'). Does anyone know how I can fix it? I dropped all the missing values on diffz as well.
Code:
twoway (line diffz CZtime if naics==44) (line diffz CZtime if naics==48) (line diffz CZtime if naics==42) (line diffz CZtime if naics==31) (line diffz CZtime if naics==52), xlabel(-3(1)3) legend(label(1 "Retail Trade") label(2 "Transportation & Warehousing") label(3 "Whole Sale") label(4 "Manufacturing") label(5 "Finance and Insurance")) title("Industry Change by County", size(medium)) ytitle("Employment", size(medium)) ylabel(-100(20)100)
Code:
twoway (line diffz CZtime if naics==44) (line diffz CZtime if naics==48) (line diffz CZtime if naics==42) (line diffz CZtime if naics==31) (line diffz CZtime if naics==52), xlabel(-3(1)3) legend(label(1 "Retail Trade") label(2 "Transportation & Warehousing") label(3 "Whole Sale") label(4 "Manufacturing") label(5 "Finance and Insurance")) title("Industry Change by County", size(medium)) ytitle("Employment", size(medium)) ylabel(-100(20)100)
Comment