Hello,
I want to add some lines to divide a scatterplot in zones, e.g. via twoway pci.
See example below:
However, on the graph, I only want the legend for the dots ("Price") to appear below the graph, and not the "y/yb" for the horizontal line.
I tried the following command, but then the entire legend disappears ...
Does anyone has an idea how to solve this issue?

I want to add some lines to divide a scatterplot in zones, e.g. via twoway pci.
See example below:
Code:
sysuse auto scatter price mpg, xline(22.5) || (pci 10000 22.5 10000 42)
I tried the following command, but then the entire legend disappears ...
Code:
twoway (scatter price mpg, xline(22.5) legend(on)) || (pci 10000 22.5 10000 42, legend(off))
Comment