Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typo in the qplot_survival function #1

Open
kippakers opened this issue Jul 15, 2015 · 0 comments
Open

typo in the qplot_survival function #1

kippakers opened this issue Jul 15, 2015 · 0 comments

Comments

@kippakers
Copy link

The last bit of code in the qplot_survival function reads:

ggplot(data=t.survframe, aes(colour=strata, group=strata)) + geom_step(aes(x=time, y=surv), direction="hv") + geom_ribbon(aes(x=time, ymax=upper, ymin=lower, fill=strata), directions="hv", linetype=0, alpha=0.25) + geom_point(data=subset(t.survframe, n.censor==1), aes(x=time, y=surv), shape=20) + geom_step(aes(x=time, y=upper), directions="hv", linetype=2, alpha=0.5) + geom_step(aes(x=time,y=lower), direction="hv", linetype=2, alpha=0.5)

But f.frame needs to replace t.survframe a few times. It should read:

ggplot(data=f.frame, aes(colour=strata, group=strata)) + geom_step(aes(x=time, y=surv), direction="hv") + geom_ribbon(aes(x=time, ymax=upper, ymin=lower, fill=strata), directions="hv", linetype=0, alpha=0.25) + geom_point(data=subset(f.frame, n.censor==1), aes(x=time, y=surv), shape=20) + geom_step(aes(x=time, y=upper), directions="hv", linetype=2, alpha=0.5) + geom_step(aes(x=time,y=lower), direction="hv", linetype=2, alpha=0.5)

Thanks for the code, by the way, it's great stuff!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant