Skip to content

survminer

Drawing Survival Curves using 'ggplot2'

v0.5.2 · Feb 24, 2026 · GPL-2

Description

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.

Downloads

CRAN

47.5K

Last 30 days

516th

171.8K

Last 90 days

636.2K

Last year

Trend: -21% (30d vs prior 30d)

r2u CRAN

113

Last 30 days

369

Last 90 days

1.3K

Last year

Trend: +4.6% (30d vs prior 30d)

autoCRAN

1

Last 7 days

11

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

conda-forge CRAN

1.2K

Last 30 days

4.1K

Last 90 days

11.9K

Last year

Trend: -31.1% (30d vs prior 30d)

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 8, 2026
ERROR r-devel-linux-x86_64-debian-gcc

package dependencies

Package required but not available: ‘ggpubr’

Package suggested but not available for checking: ‘flexsurv’

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
OK 12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 25, 2026
NOTE 11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-oldrel-macos-arm64

installed package size

installed size is  6.0Mb
  sub-directories of 1Mb or more:
    doc   5.5Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is  6.0Mb
  sub-directories of 1Mb or more:
    doc   5.5Mb
NOTE r-oldrel-windows-x86_64

installed package size

installed size is  6.0Mb
  sub-directories of 1Mb or more:
    doc   5.5Mb

Code

Structure

Lines of code

10,284

Files

105

Compiled share

0%

Has compiled src

No

Language breakdown

R 6,124 (59.5%)Tests 243 (2.4%)Docs 3,189 (31%)Vignettes 728 (7.1%)

API

Exported functions

32

Internal functions

72

Testing & CI

Has tests

Yes

Test-to-code ratio

0.04

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

84%

\dontrun example ratio

6.9%

Roxygen coverage

96.9%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

Unsafe pattern score

0

Dep constraint coverage

23.5%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

System requirements

C++ standard

License

GPL-2

License flags

SPDX valid, OSI approved

History

Versions

21

First release

2016-01-18

Latest release

2026-02-25

Avg cadence

96 days

Cold removal rate

100%

Dep drift

14

LOC over versions

v0.1.1: 802 LOCv0.2.0: 938 LOCv0.2.1: 1,480 LOCv0.2.2: 2,044 LOCv0.2.3: 3,121 LOCv0.2.4: 3,123 LOCv0.3.0: 5,368 LOCv0.3.1: 5,499 LOCv0.4.0: 8,932 LOCv0.4.1: 9,377 LOCv0.4.2: 9,419 LOCv0.4.3: 9,473 LOCv0.4.4: 9,477 LOCv0.4.5: 9,493 LOCv0.4.6: 9,547 LOCv0.4.7: 9,768 LOCv0.4.8: 9,768 LOCv0.4.9: 9,871 LOCv0.5.0: 9,956 LOCv0.5.1: 10,059 LOCv0.5.2: 10,284 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Reverse Dependencies (72)

Dependency Network

Dependencies Reverse dependencies ggplot2 ggpubr gridExtra magrittr maxstat scales survival broom dplyr tidyr purrr tibble rlang ggtext BRACE LongCART Oncofilterfast AdverseEvents AutoScore BayesFBHborrow BioPred CondiS CopulaSCR Coxmos E2E FlexVarJM GFDsurv IDMIR IOBR +57 more reverse deps survminer

Version History

22 tracked
new 0.5.2 Mar 10, 2026
updated 0.5.2 ← 0.5.1 diff Feb 24, 2026
updated 0.5.1 ← 0.5.0 diff Sep 2, 2025
updated 0.5.0 ← 0.4.9 diff Oct 29, 2024
updated 0.4.9 ← 0.4.8 diff Mar 8, 2021
updated 0.4.8 ← 0.4.7 diff Jul 24, 2020
updated 0.4.7 ← 0.4.6 diff May 27, 2020
updated 0.4.6 ← 0.4.5 diff Sep 3, 2019
updated 0.4.5 ← 0.4.4 diff Aug 2, 2019
updated 0.4.4 ← 0.4.3 diff May 20, 2019
updated 0.4.3 ← 0.4.2 diff Aug 4, 2018
updated 0.4.2 ← 0.4.1 diff Jan 31, 2018
updated 0.4.1 ← 0.4.0 diff Nov 16, 2017
updated 0.4.0 ← 0.3.1 diff Jun 6, 2017
updated 0.3.1 ← 0.3.0 diff Mar 20, 2017