Announcement

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

  • sts graph -- edit line characteristics

    If I use the sts graph command I can't figure out how to choose different line properties (e.g., the line pattern, line color, etc.)

    Further, if I type

    sts graph, by(sex)

    I would like to choose the properties for both the Male and Female survival plots.


    Any advice how to do this?


    Tom



  • #2
    In the future, please provide a reproducible example as advised in the FAQs. In this instance, this additionally includes a data example. For most Stata command graphs, twoway options apply.

    Code:
    webuse drug2b
    sts graph, by(drug) scheme(s1color)
    gr save gr1, replace
    sts graph, by(drug) plot1opts(lcolor(blue)) plot2opts(lcolor(green)) scheme(s1color)
    gr save gr2, replace
    gr combine gr1.gph gr2.gph, scheme(s1color)

    Click image for larger version

Name:	Graph.png
Views:	1
Size:	33.3 KB
ID:	1561404


    Comment


    • #3
      Thank you for the helpful reply. I appreciate it.

      Comment

      Working...
      X