Hi,
I am trying to overlay two graphs. (Stata version 13)
Graph 1:
As you can see, I am completely removing the histogram bars and only the normal density plot is visible (with a line going through the '0' value (mean) added via addplot()).
The second graph is the same, but for cat==1
How do I combine both, so that the normal curves appear on the same graph rather than one by one.
Also, please suggest how to make one 'solid' and other 'dashed' with some legend.
Thanks in advance.
I am trying to overlay two graphs. (Stata version 13)
Graph 1:
Code:
histogram depvar if (cat==0), normal lcolor(white) fcolor(white) xtitle("X variable") title("Results - Cat=0") legend(off) addplot(pci 0 0 8 0, lpattern(shortdash) lcolor(black))
The second graph is the same, but for cat==1
Code:
histogram depvar if (cat==1), normal lcolor(white) fcolor(white) xtitle("X variable") title("Results - Cat=1") legend(off) addplot(pci 0 0 8 0, lpattern(shortdash) lcolor(black))
Also, please suggest how to make one 'solid' and other 'dashed' with some legend.
Thanks in advance.
Comment