Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How do I change color by plotdimension in the marginsplot command?

    The graph below is created using the four category variable race_mode_n and the binary variable concordant_race. Is it possible to change which colors are used for the different dimensions of concordant_race? E.g. is it possible to assign the level "Different Race IJ" the color black instead of blue?

    Code:
    marginsplot, xdimension(race_mode_n) ///
        plotdimension(concordant_race, ///
        elabels(1"Different Race IJ" 2"Same Race IJ")) ///
        horizontal recast(scatter) plotopts(msize(medlarge) msymbol(square)) scheme( stmono2) ///
        ciopts(msize(medlarge)) ytitle("Immigrant Race" , size(vlarge)) yscale(noline) ///
        ylabel(, labsize(vlarge)) xtitle(Predicted Release Rate) ///
        xtitle(, size(vlarge)) xscale(noline) ///
        xlabel(, labsize(vlarge)) title("Any Criminal Charge" " ", size(vlarge)) ///
        legend(size(vlarge) position(6)) plotregion(lcolor(black))

    Click image for larger version

Name:	figure_7_any_crim_charge.png
Views:	1
Size:	39.6 KB
ID:	1736507

  • #2
    Data example?

    Comment

    Working...
    X