Nick Cox Dear Nick, I have a question about your command --localp--.I want to plot two graphs in one graph. I tried to use addplot(),but this command does
not support.here is an example.
Code:
sysuse auto,clear
localp price mpg if foreign==1,scheme(s1mono) lineopt(lp(solid)) ///
addplot(localp price mpg if foreign==0,scheme(s1mono) lineopt(lp(shortdash_dot)))
localp is not a twoway plot type
r(198);
So i have tried another way.
Code:
sysuse auto,clear
localp price mpg if foreign==1,nograph gen(l1)
localp price mpg if foreign==0,nograph gen(l0)
twoway line l1 l0 mpg ,sort lp(solid shortdash_dot) ///
       ||scatter price mpg if foreign==1 ,m(O) msize(small) ///
       ||scatter price mpg if foreign==0,m(Oh) msize(small)  ///
       ,legend(order(3 "Foreign Car Price" 4 "Domestic Car Price") rows(2))  ///
       scheme(s1mono)
This graph is just waht I want.But I think it is not a good way.Do you have a simpler way to get this graph?

Best
Raymond