Might someone who is better at quote nesting than I am—that would be roughly 99.9% of the participants on StataList—suggest a solution to the following?
The problem is a generic one but is illustrated with this example:
I'd like to be able to pass local arguments to the scatter command that would replicate this graph, using
Assuming this is possible, what is the proper way to specify l1 and l2 and their corresponding arguments in the label options?
Thanks much in advance.
The problem is a generic one but is illustrated with this example:
Code:
sysuse auto scatter rep headroom mpg, legend(label(1 "Rep" "Variable") label(2 "Headroom" "Variable"))
Code:
local l1=<something1> local l2=<something2> scatter rep headroom mpg, legend(label(1 <something3>) label(2 <something4>))
Thanks much in advance.
Comment