High-Level Interface for Survival Analysis and Associated Plots

A high-level interface to perform survival analysis, including Kaplan-Meier analysis and log-rank tests and Cox regression. Aims at providing a clear and elegant syntax, support for use in a pipeline, structured output and plotting. Builds upon the 'survminer' package for Kaplan-Meier plots and provides a customizable implementation for forest plots. Kaplan & Meier (1958) Cox (1972) Peto & Peto (1972) .

The goal of survivalAnalysis is to provide a high-level, elegant interface for the most frequent tasks of survival analysis, with a focus on the needs of clinical oncology. The syntax follows the tidyverse philosophy and is made to be used in a pipeline.


Install from CRAN:


Or install the latest git version from bitbucket:



The following areas are covered:

  • Univariate analysis
    • Descriptive statistics
    • Log-rank test
    • Pair-wise comparisons
  • Multivariate analysis / Cox regression
  • Kaplan-Meier plots based on survminer
    • Ready-to-use plot by passing the univariate analysis result
    • High-level support for grids of KM plots
  • Forest plots based on ggplot2
    • Easy creation by passing the multivariate analysis result, or multiple univariate analysis results
    • Highly customizable

Getting Started

This package comes with two vignettes, which guide you through all core functionality and are recommended to get started.


survivalAnalysis 0.1.1

  • export identity_order, which is used by forest plots
  • work around upstream name collision (flatten_raw in purrr and rlang)

survivalAnalysis 0.1.0

  • initial release

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


0.2.0 by Marcel Wiesweg, 6 months ago

Browse source code at https://github.com/cran/survivalAnalysis

Authors: Marcel Wiesweg [aut, cre]

Documentation:   PDF Manual  

GPL-3 license

Imports grDevices, graphics, stats, utils, survival, rlang, dplyr, forcats, magrittr, purrr, stringr, tibble, tidyr, gridExtra, ggplot2, scales, survminer, cowplot, tidytidbits

Suggests knitr, rmarkdown, tidyverse

See at CRAN