Announcement

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

  • Changing the line color of each category after mcp

    Dear all

    I tried to change the line color for marginscontplot.
    For example, I would like to use red for 1 "Low", orange for 2 "Low-Middle", blue for 3 "Middle-High" and navy for 4 "High".
    I tried to look for the codes lcolor (...) and tried to change line colors but didn't work.
    Could you please let me know what I need to add to change the line colors for different category?

    Thank you so much.

    Code:
    svy:logistic disease1 age_adult i.incomequart
    mcp age_adult i.incomequart, ylab(0 (0.1) 1) title("(b) Age,Household Income",///
    placement(west)) xtitle(Age of Adults) ytitle(Prevalence of Disease)///
     legend(label(1 "Low") label(2 "Low-Middle") label (3 "Middle-High") label (4 "High")))///
    saving(test)
Working...
X