Skip to content

Commit

Permalink
Update ehrapy/plot/_survival_analysis.py
Browse files Browse the repository at this point in the history
  • Loading branch information
eroell authored Dec 1, 2024
1 parent a26f6bc commit 1442983
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ehrapy/plot/_survival_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def kmf(
>>> adata_sicu = adata[groups == "SICU"]
>>> kmf_1 = ep.tl.kaplan_meier(adata_ficu, "mort_day_censored", "censor_flg", label="FICU")
>>> kmf_2 = ep.tl.kmf(adata_micu, "mort_day_censored", "censor_flg", label="MICU")
>>> kmf_3 = ep.tl.kmf(adata_sicu, "mort_day_censored", "censor_flg", label="SICU")
>>> kmf_3 = ep.tl.kaplan_meier(adata_sicu, "mort_day_censored", "censor_flg", label="SICU")
>>> ep.pl.kmf([kmf_1, kmf_2, kmf_3], ci_show=[False,False,False], color=['k','r', 'g'],
>>> xlim=[0, 750], ylim=[0, 1], xlabel="Days", ylabel="Proportion Survived")
Expand Down

0 comments on commit 1442983

Please sign in to comment.