How can I make the two lower graphs (nox and voc) to be at the center instead of on the left-hand side?
Code:
graph combine pm10 co so2 nox voc
// create basic graphs sysuse auto, clear forval i=1/5 { scatter mpg weight if rep78==`i', name(r`i', replace) title("Rep78 == `i'") aspect(1) } //create rows separately graph combine r1 r2 r3, rows(1) name(row1, replace) graph combine r4 r5, rows(1) name(row2, replace) //combine the rows graph combine row1 row2, cols(1)
scatter mpg weight if rep78==4, name(r4x, replace) title("Rep78 == 4") aspect(1) graphregion(margin(l 40)) scatter mpg weight if rep78==5, name(r5x, replace) title("Rep78 == 5") aspect(1) graphregion(margin(r 40)) graph combine r4x r5x, name(row2x, replace) row(1) graph combine row1 row2x, cols(1)
Comment