I want to plot many two-way plots, therefore I have many pairs of X's and Y's.

I want to use macro and loop over the plot function:
Code:
local pair1 X1 Y1
local pair2 X2 Y2
local pair3 X3 Y3
local pair4 X4 Y4

local pairs pair1 pair2 pair3 pair4

********************** plot two-way scatter graphs **********************

foreach pair in `pairs' {

    graph twoway (scatter `pair')

}
Why it does not work? How can I make it work? Thank you very much!