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:
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?
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))
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?
Comment