I'm trying to use the new transparent color options in Stata 15 to make the -recastci(rarea) produce transparent color. I've tried various versions of the command:
marginsplot, recast(line) recastci(rarea intensity(inten50)) addplot((scatter AGD1_H PPB_LW_OPDDT if sex==0, msymbol(o) msize(small)) (scatter AGD1_H PPB_LW_OPDDT if sex==1, msymbol(+) msize(small)))
and
marginsplot, recast(line) recastci(rarea color(%50)) addplot((scatter AGD1_H PPB_LW_OPDDT if sex==0, msymbol(o) msize(small)) (scatter AGD1_H PPB_LW_OPDDT if sex==1, msymbol(+) msize(vsmall)))
Stata responds "recast (rarea etc.) not allowed". Is this a bug, an oversight or a feature? Can someone please provide proper syntax?
A second issue with my present syntax is that the "mysmbol(+) specification at the end of the command doesn't change the symbols to +, though the first instance of the symbol(o) size(small) appears to change symbols for both sex==0 and sex==1 to very small circles. Can someone please point out my error to allow small circles for sex==0 and small + for sex==1?
Best regards,
Steve Rothenberg
Instituto Nacional de Salud Publica
Cuernavaca, Morelos, Mexico
marginsplot, recast(line) recastci(rarea intensity(inten50)) addplot((scatter AGD1_H PPB_LW_OPDDT if sex==0, msymbol(o) msize(small)) (scatter AGD1_H PPB_LW_OPDDT if sex==1, msymbol(+) msize(small)))
and
marginsplot, recast(line) recastci(rarea color(%50)) addplot((scatter AGD1_H PPB_LW_OPDDT if sex==0, msymbol(o) msize(small)) (scatter AGD1_H PPB_LW_OPDDT if sex==1, msymbol(+) msize(vsmall)))
Stata responds "recast (rarea etc.) not allowed". Is this a bug, an oversight or a feature? Can someone please provide proper syntax?
A second issue with my present syntax is that the "mysmbol(+) specification at the end of the command doesn't change the symbols to +, though the first instance of the symbol(o) size(small) appears to change symbols for both sex==0 and sex==1 to very small circles. Can someone please point out my error to allow small circles for sex==0 and small + for sex==1?
Best regards,
Steve Rothenberg
Instituto Nacional de Salud Publica
Cuernavaca, Morelos, Mexico
Comment