I was configuring my sts graph to decrease the opacity of the CI bands and get rid of the lines at the bands of the CI and also not plotting the 95% CI in the legend. Somehow my ciopts are affecting the legends whenever I work with the ciopts area_options. I want the legend to only showing the two groups and their lines at 100% opacity.
Sorry I am unable to dataex since there are too many nested include files grabbing numbers. But see attached image to see the issue.
Sorry I am unable to dataex since there are too many nested include files grabbing numbers. But see attached image to see the issue.
Code:
sts graph, by(`b') risktable ci ciopts(fcolor(%5)) /// title("`title'", color(black) size(medium)) /// xtitle("Time since Transformation (years)", size(small)) /// xlabel(0(1)5.35, labs(small)) ylabel(0(0.25)1, angle(0) labs(small)) /// ytitle("Proportion surviving", size(small) margin(medium)) /// text(`kos1n' 5.23 "`kos1'" $sts_txt_opts2) /// text(`kos0n' 5.23 "`kos0'" $sts_txt_opts2) /// risktable(0(1)5 , size(small) order(1 "`vl0'" 2 "`vl1'")) /// text(.75 5 "Medn. surv.: {bf:`ms1' {it:vs.} `ms0'} yrs" "Log rank {it:P} {bf:`pvalue'}" $sts_txt_opts) /// legend(order (1 "No BCL2i" 2 "Check 95%CI" 3 "BCL2i" 4 "CHeck2 95% CI")$sts_leg_opts)
Comment