Package: survminer 0.5.2.999

survminer: Drawing Survival Curves using 'ggplot2'

Contains the function 'ggsurvplot()' for drawing easily beautiful and 'ready-to-publish' survival curves with the 'number at risk' table and 'censoring count plot'. Other functions are also available to plot adjusted curves for `Cox` model and to visually examine 'Cox' model assumptions.

Authors:Alboukadel Kassambara [aut, cre], Marcin Kosinski [aut], Przemyslaw Biecek [aut], Scheipl Fabian [ctb]

survminer_0.5.2.999.tar.gz
survminer_0.5.2.999.zip(r-4.7-any)survminer_0.5.2.999.zip(r-4.6-any)survminer_0.5.2.999.zip(r-4.5-any)
survminer_0.5.2.999.tgz(r-4.6-any)survminer_0.5.2.999.tgz(r-4.5-any)
survminer_0.5.2.999.tar.gz(r-4.7-any)survminer_0.5.2.999.tar.gz(r-4.6-any)
survminer_0.5.2.999.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
survminer/json (API)

# Install 'survminer' in R:
install.packages('survminer', repos = c('https://kassambara.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/kassambara/survminer/issues

Datasets:
  • adtte - Example CDISC ADTTE Time-to-Event Dataset
  • BMT - Bone Marrow Transplant
  • BRCAOV.survInfo - Breast and Ovarian Cancers Survival Information
  • myeloma - Multiple Myeloma Data

On CRAN:

Conda:

15.32 score 575 stars 68 packages 105 scripts 40k downloads 1.5k mentions 48 exports 89 dependencies

Last updated from:86c3aa209b. Checks:7 ERROR, 2 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develERROR407
source / vignettesOK330
linux-releaseERROR471
macos-releaseERROR330
macos-oldrelERROR440
windows-develERROR476
windows-releaseERROR465
windows-oldrelERROR466
wasm-releaseOK153

Exports:%++%arrange_ggsurvplotsbuild_ggsurvplotcustomize_labelsggadjustedcurvesggcompetingrisksggcoxdiagnosticsggcoxfunctionalggcoxnphggcoxzphggcumcensorggcumeventsggflexsurvplotggforestggforest_modelsggforest_subgroupgglandmarkggmilestoneggrisktableggrmstggrmst_differenceggsurveventsggsurvparametricggsurvplotggsurvplot_add_allggsurvplot_combineggsurvplot_dfggsurvplot_facetggsurvplot_group_byggsurvplot_listggsurvtablepairwise_survdiffsurv_adjustedcurvessurv_adttesurv_categorizesurv_cutpointsurv_fitsurv_group_bysurv_mediansurv_median_followupsurv_pvaluesurv_summarytheme_cleantabletheme_surv_boldtheme_surv_classictheme_surv_minimaltheme_survminerweighted_logrank

Dependencies:abindbackportsbootbroomcarcarDataclicolorspacecommonmarkcorrplotcowplotcpp11curlDerivdoBydplyrexactRankTestsfarverforecastFormulafracdiffgenericsggplot2ggpubrggrepelggsciggsignifggtextgluegridExtragridtextgtableisobandjpeglabelinglatticelifecyclelitedownlme4lmtestmagrittrmarkdownMASSMatrixMatrixModelsmaxstatmgcvminqamodelrmvtnormnlmenloptrnnetnumDerivpbkrtestpillarpkgconfigpngpolynompurrrquantregR6rbibutilsRColorBrewerRcppRcppArmadilloRcppEigenRdpackreformulasrlangrstatixS7scalesSparseMstringistringrsurvivaltibbletidyrtidyselecttimeDateurcautf8vctrsviridisLitewithrxfunxml2zoo

Survival plots have never been so informative
Motivation | Example | Comparisons | base package

Last update: 2026-07-29
Started: 2016-05-25

Absolute effect measures: RMST, milestone and landmark analysis
Why a single hazard ratio may not be enough | Restricted mean survival time (RMST) | Reading and reporting RMST | Milestone (fixed-time) survival | Landmark analysis and immortal-time bias | Where to next

Last update: 2026-07-29
Started: 2026-07-14

Specifiyng weights in Log-rank comparisons
Log-rank statistic for 2 groups | Weighted Log-rank extensions | Why are they useful? | Plots | Log-rank (survdiff) | Log-rank (weighted) | Gehan-Breslow (generalized Wilcoxon) | Tharone-Ware | Peto-Peto's modified survival estimate | modified Peto-Peto's (by Andersen) | Fleming-Harrington (p=1, q=1) | The weighted_logrank() function | References

Last update: 2026-07-14
Started: 2017-01-30

Competing risks: cumulative incidence, Gray's test, and the naive-KM trap
Why not 1 − Kaplan-Meier? | Cumulative incidence, the right way | The naive-KM trap, made visible | Testing between groups: Gray's test | A number-at-risk table | Where to next

Last update: 2026-07-14
Started: 2026-07-14

Interrogating a Cox model: forest plots and proportional-hazards diagnostics
One model's coefficients | Is the effect the same in every subgroup? | One covariate across several models | Can you trust the hazard ratio? The proportional-hazards check | When the assumption fails | Where to next

Last update: 2026-07-14
Started: 2026-07-14

Get started: from data to a publication-ready figure
Three lines to a survival curve | One argument to a publication-ready figure | Your arguments always win | Choosing a look | Reusable themes | The numbers every KM paper reports | Building on the curve | Saving your figure | Where to next

Last update: 2026-07-14
Started: 2026-07-14

Customization recipes
Dashed curves once few patients remain at risk | Step-shaped legend keys | Mark the median survival and its confidence interval | Plot math (expressions) in the legend | One shared legend across a grid of plots | Risk table under Cox-adjusted survival curves | Risk table under ggadjustedcurves() | Single event and a number-at-risk table for competing risks | Forest plot of several univariate Cox models | Smooth parametric (survreg / Weibull) survival curves | Subgroup-analysis forest (treatment effect within subgroups) | Compare parametric distributions against the Kaplan-Meier

Last update: 2026-07-14
Started: 2026-07-08

ggforest: How to Show Interactions Hazard Ratio
Introduction | Load required R packages | Compute a Cox model with interaction terms

Last update: 2020-12-20
Started: 2020-12-20

Playing with fonts and texts
Survival plot | Basic | Customized | Risk table | ncens plot | Notes

Last update: 2017-03-13
Started: 2017-01-15

Readme and manuals

Help Manual

Help pageTopics
Add Components to a ggsurvplot%++% +.ggsurv add_ggsurvplot
Example CDISC ADTTE Time-to-Event Datasetadtte
Arranging Multiple ggsurvplotsarrange_ggsurvplots
Bone Marrow TransplantBMT
Breast and Ovarian Cancers Survival InformationBRCAOV.survInfo
Build the Assembled Grob of a ggsurvplot Objectbuild_ggsurvplot
Customize the Font of ggsurvplot Labelscustomize_labels
Adjusted Survival Curves for Cox Proportional Hazards Modelggadjustedcurves surv_adjustedcurves
Cumulative Incidence Curves for Competing Risksggcompetingrisks
Diagnostic Plots for Cox Proportional Hazards Model with ggplot2ggcoxdiagnostics
Functional Form of Continuous Variable in Cox Proportional Hazards Modelggcoxfunctional print.ggcoxfunctional
Non-Proportional-Hazards Diagnostic Panelggcoxnph grid.draw.ggcoxnph print.ggcoxnph
Graphical Test of Proportional Hazards with ggplot2ggcoxzph print.ggcoxzph
Ggplots of Fitted Flexible Survival Modelsggflexsurvplot
Forest Plot for Cox Proportional Hazards Modelggforest
Forest Plot Comparing One Term Across Several Cox Modelsggforest_models
Subgroup Forest Plot of a Treatment Hazard Ratioggforest_subgroup
Landmark Analysis of Survival Curvesgglandmark
Milestone (Fixed-Time) Survivalggmilestone
Plot Survival Tablesggcumcensor ggcumevents ggrisktable ggsurvtable
Restricted Mean Survival Time (RMST)ggrmst ggrmst_difference
Distribution of Events' Timesggsurvevents
Parametric Survival Curves over Kaplan-Meierggsurvparametric
Drawing Survival Curves Using ggplot2ggsurvplot grid.draw.ggsurvplot print.ggsurvplot
Add Survival Curves of Pooled Patients onto the Main Plotggsurvplot_add_all
ggsurvplot Argument Descriptionsggsurvplot_arguments
Combine a List of Survfit Objects on the Same Plotggsurvplot_combine
Plot Survival Curves from Survival Summary Data Frameggsurvplot_df
Facet Survival Curves into Multiple Panelsggsurvplot_facet print.ggsurvplot_facet
Survival Curves of Grouped Data setsggsurvplot_group_by
Plot a List of Survfit Objectsggsurvplot_list
Multiple Myeloma Datamyeloma
Multiple Comparisons of Survival Curvespairwise_survdiff
Analysis-Ready Survival Data from a CDISC ADTTE Datasetsurv_adtte
Determine the Optimal Cutpoint for Continuous Variablesplot.surv_cutpoint print.plot_surv_cutpoint print.surv_cutpoint summary.surv_cutpoint surv_categorize surv_cutpoint
Create Survival Curvessurv_fit
Create a Grouped Dataset for Survival Analysissurv_group_by
Median of Survival Curvessurv_median
Median Follow-Up Time (Reverse Kaplan-Meier)surv_median_followup
Compute P-value Comparing Survival Curvessurv_pvalue
Nice Summary of a Survival Curvesurv_summary
Theme for Survminer Plotstheme_cleantable theme_survminer theme_surv_bold theme_surv_classic theme_surv_minimal
Fleming-Harrington Weighted Log-Rank Testsweighted_logrank