Skip to content

Instantly share code, notes, and snippets.

@MJacobs1985
Created November 10, 2022 13:13
Show Gist options
  • Save MJacobs1985/790ad6890fdbadbd4a8cc6b0676f6182 to your computer and use it in GitHub Desktop.
Save MJacobs1985/790ad6890fdbadbd4a8cc6b0676f6182 to your computer and use it in GitHub Desktop.
ggplot() +
geom_line(data=total, mapping=aes(x=time, y=Severity)) +
geom_point(data=total, mapping=aes(x=time, y=Severity)) +
facet_wrap(~Patientnr, scales="free_x") + coord_cartesian(ylim = c(0, 10)) +
geom_vline(pancreas, mapping=aes(xintercept = SurvTimeWeek), linetype="dotted", color = "red", size=1.0) +
theme_bw()
ggplot() +
geom_line(data=total, mapping=aes(x=time, y= Overall_QOL)) +
geom_point(data=total, mapping=aes(x=time, y=Overall_QOL)) +
facet_wrap(~Patientnr, scales="free_x") + coord_cartesian(ylim = c(0, 100)) +
geom_vline(pancreas, mapping=aes(xintercept = SurvTimeWeek), linetype="dotted", color = "red", size=1.0) +
theme_bw()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment