I'm generating a graph with lines of best fit and it works fine but when I try and suppress the legend I get an error message. If use:
Code:
tw((lfitci sales year if Dense==1 & year<2008, lp(dash)) (lfitci sales year if Sparse==1 & year<2008)(lfitci sales year if Dense==1 & year>=2008, lp(dash)) (lfitci sales year if Sparse==1 & year>=2008))
I have no problems. But as soon as I change it to
Code:
tw((lfitci sales year if Dense==1 & year<2008, lp(dash)) (lfitci sales year if Sparse==1 & year<2008)(lfitci sales year if Dense==1 & year>=2008, lp(dash)) (lfitci sales year if Sparse==1 & year>=2008)), leg(off)
I get an error message saying "lfitci is not a twoway plot type". Thoughts?