Announcement

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

  • Possible to change all line widths in an sts graph

    Dear Stata wizards,

    I have difficulty discerning the curves in Stata's standard settings.

    I manually solve this by specifying plot1opt, plot2opt et c. However, the immense tedium with this is that the variables I investigate have variable numbers of category.

    So when I use a standard code to throw different variables into it:

    Code:
    sts graph,  by (X) ytitle("Proportion with event") xtitle("Years") ylabel(0(.25)1) ytick(0(.25)1) title("Years") xlabel(0(2)16) xtick(0(2)16)  scheme (sj)  plot1opt(lwidth(0.7)) plot2opt(lwidth(0.7)) plot3opt(lwidth(0.7)) plot4opt(lwidth(0.7))
    This works fine if variable X is the four seasons
    But if X is sex, Stata throws back an error
    And if X is months, only four of the twelve months are discernible to me.

    This really slows me down, having to manually change the number of plotopts.

    Is there a way to make all lines in the sts graph equally thick, regardless of the numbers of category?

  • #2
    Maybe you are making it more complicated than it should be?

    Code:
    plotopt(lwidth(0.7))

    Comment


    • #3
      Originally posted by Andrew Musau View Post
      Maybe you are making it more complicated than it should be?

      Code:
      plotopt(lwidth(0.7))
      Indeed I did! Thank you!

      Comment

      Working...
      X