Hi Statalisters,

A bit rusty with my plotting, I cannot find how to solve a simple problem.
I tried to recreate an example plot from a Stata help file:

Code:
webuse brcancer
stset rectime, failure(censrec = 1)
stpm2 hormon, scale(hazard) df(4) eform
predict s, survival ci
then I tried to plot the predicted values that were output (s, s_lci, s_uci) as follows, but I get a messy plot:

Code:
. twoway (line s _t, sort) (line s_lci _t, sort lpattern(dash)) (line s_uci _t, sort lpattern(dash))

. twoway (line s _t) (line s_lci _t, lpattern(dash)) (line s_uci _t, lpattern(dash))


Could you please point me to where I am missing?

Thanks very much for your attention!
G Kassler