An R package for creating publication-ready survival plots and conducting survival analysis using ggplot2.
survminer is an R package that provides tools for survival analysis and visualization. It enables users to create customizable, publication-quality survival plots, perform Cox model diagnostics, and conduct competing risks analysis, all integrated with the ggplot2 graphics system. It solves the problem of generating informative and aesthetically pleasing survival curves directly within the R ecosystem.
Biostatisticians, clinical researchers, epidemiologists, and data analysts working with time-to-event data who need to create standardized survival plots and perform routine survival analyses in R.
Developers choose survminer because it seamlessly bridges the gap between the statistical output of the survival package and the flexible, publication-ready graphics of ggplot2, offering extensive customization options not available in base R plotting functions.
Survival Analysis and Visualization
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Offers extensive customization of survival plots using ggplot2 syntax, allowing users to adjust colors, themes, and layouts for publication-ready figures, as shown in the 'Uber customized' examples with parameters like conf.int.style and surv.median.line.
Includes functions like ggcoxzph for checking proportional hazards and ggcoxdiagnostics for model fit, streamlining the validation of Cox models within the same package without switching tools.
Provides a range of tools from Kaplan-Meier curves with risk tables to competing risks analysis, covering common survival analysis needs such as optimal cutpoint determination and multiple comparisons in one cohesive package.
Seamlessly works with ggplot2 and the tidyverse ecosystem, making it easy for users familiar with these tools to incorporate survival analysis into their workflows, as evidenced by the use of ggtheme for theming.
Advanced plot modifications require intricate code and deep knowledge of ggplot2, as demonstrated in the 'Uber platinum premium' section with helper functions, which can be time-consuming and error-prone for casual users.
Heavily relies on ggplot2 and related packages, increasing installation size and potential for conflicts, and may not suit environments where base R graphics are preferred or dependencies are minimized.
Generates only static plots without built-in support for interactive visualizations, limiting its use in dynamic reporting or exploratory data analysis where tools like plotly are needed.