Dear all,
I would like to create several boxplots at once and combine them. i found the code below and it works very well. can some one help me understand the different sections. i understand the foreach command but i am confused about the rest mainly
local names `names' graph`j'
local j

Thanks in advance


Code:
local j = 1
local names
foreach var of varlist A-X {
     graph box  `var', name(graph`j')
     local names `names' graph`j'
     local j
}

graph combine `names'
Stata 15.1 Mac