I have inherited a plotting function in a project where the person inspires her code from the stata module cibar.
This plotting function has arguments, spikeopts (spike options), ciopts (confidence interval options), spikecolor ... For example :
HTML Code:
* Spike options local spikeopts = "fintensity(inten100) `a1'axis(1 2 3)" + " " + `"`spikeopts'"' local sg = `spikegap' / 100 * Confidence interval options local ciopts = "lcolor(gs8)" + " " + `"`ciopts'"' * Add colors to graph command if wordcount(`"`spikecolor'"') > 0 { qui gen scolors = `"`spikecolor'"' qui split scolors, gen(scolor) forvalues j = 1/`r(nvars)' { cap qui replace spike`j' = spike`j' + " color(" + scolor`j' + ")" } }
0 Response to Add spike shape options in plotting function
Post a Comment