Hello,
I want to make a graph that puts lines ("ylines", "xlines") in front of the points produced by "scatter". However, the advice to put the front layer at the end of the syntax does not work. I might put it everywhere, the lines are always hidden by the points.
Maybe just a small but one needs to knwo :-)
Thanks a lot in advance,
Michael
#delimit;
graph twoway scatter y x in 1 , msymbol(n) color(white)
|| scatter y x if ev0==1 , color(sand) msymbol(p)
|| scatter y x if evd==1 , color(sandb) msymbol(p)
lalign(inside)
xtitle("prior mean")
ytitle("prior SD")
title("Region of Evidence")
scheme(s1color)
legend(off)
|| scatter y x if confl==1 , color(gs12) msymbol(p) ,
ylab(0(`sdstep')`sdmax')
yline(0(`sdstep')`sdmax' , lcolor(gs10) )
xlab(`lower'(`estep')`upper')
xline(`lower'(`estep')`upper' , lcolor(gs10) )
text( `sd0' `e0' "* (prior)" , place(e))
text( `sd1' `e1' "* obs" , place(e))
text( `sdp' `ep' "* (posterior)" , place(e))
text( `lab1' `upper' "Effect > 0" , place(w) bcolor(sand) color(black) lcolor(black) size(large) box )
text( `lab2' `upper' "Effect > `delta'" , place(w) bcolor(sandb) color(black) lcolor(black) size(large) box)
text( `yconfl' `lower' "prior-data conflict" , place(e) size(small))
text( `yconfl' `upper' "prior-data conflict" , place(w) size(small))
`di_e0' `di_ep'
`di_sd0' `di_sdd'
;
Related Posts with Graphic layers /twoway): points and lines
Efficient Way to Reform Repeated Codes with IF conditionDear experts, For the following repeated codes : tab1 variable1 if (variableA == 1) & (variab…
spmap and spkde - How to create a "heatmap"?Dear Statalist, In this example: page 45 https://www.stata.com/meeting/german...g12_pisati.pdf Mauri…
Marginsplot Predicted Probabillity Bar GraphDoes know how to perform a marginsplot to predict the probability of two categorical variables (e.g.…
Help with Randomly Drawing 500 Observations from DistributionDear all, I am using Stata 16, on mac. I was wondering if I wanted to randomly draw 500 observation…
explained varianceHello I have calculated a multilevel interaction effect using gsem, very much the same as example 38…
Subscribe to:
Post Comments (Atom)
0 Response to Graphic layers /twoway): points and lines
Post a Comment