Hello,
I tried to draw a graph like this:

but a curve will be covered by another:

Code:
When filled color, the graph below will be covered by the graph above. But I want to make the line of the graph at the bottom show and the overlapped area be marked. Can the transparency of the graph be adjusted or are there any other methods?
I have installed the "drarea" command which helps to highlight the overlapped area of two graphs and am still working on applying it in making normal distribution plots.
I'd appreciate any help or suggestion. Thank you!
I tried to draw a graph like this:
but a curve will be covered by another:
Code:
Code:
clear set obs 100 generate x1 = rnormal(0,1) generate x2 = rnormal(0.5,1.3) summarize x1 local M1 = r(mean) local SD1 = r(sd) summarize x2 local M2 = r(mean) local SD2 = r(sd) twoway function x1 = normalden(x, `M1', `SD1') ,recast(area) range(-4 4) lcolor(black) fcolor(blue*0.04) || /// function x2 = normalden(x, `M2', `SD2'), recast(area) range(-4 5) lcolor(black) fcolor(red*0.03)
When filled color, the graph below will be covered by the graph above. But I want to make the line of the graph at the bottom show and the overlapped area be marked. Can the transparency of the graph be adjusted or are there any other methods?
I have installed the "drarea" command which helps to highlight the overlapped area of two graphs and am still working on applying it in making normal distribution plots.
I'd appreciate any help or suggestion. Thank you!
Comment