Hi everyone,

I'm making a graph for a variable with three categories that resembles the following:

Code:
sysuse auto, clear

scatter mpg weight, by(foreign, total)
Array

I'd like to place the graph of the third category in the center of the other two graphs, so I can have something like this:

Array

The last graph results from this code,

Code:
sysuse auto, clear

scatter mpg price, name(gr2)
scatter weight price, name(gr3)
graph combine gr2 gr3, iscale(1) graphr(margin(zero)) name(gr2and3)

scatter length price, fxsize(60) name(gr1)
graph combine gr1 gr2and3, col(1)
This code was posted by David Harrison back in February 2005 in the former Statalist, https://www.stata.com/statalist/arch.../msg00557.html

As you can see, this is a combination of three graphs, each one with different variables (mpg, weight, and length) against price.

My question: How can I get something similar when ploting one variable with three categories?

Thank you.