Hi folks. I hope this isn't a silly question, but still learning how to work with Stata.

I am trying to visualise two variables using a scatter plot but would also like to identify quartiles for one of the variables within that.

Below is an example of what I am trying to achieve (both the colour and lines identifying the quartiles).

Does anyone know how I can code this up to create such a plot from two continuous variables?

Array

Thanks in advance!
Patrick