Skip to content

Kaplan-Meier Plot with 'ggplot2'

1packages depend
10.5Kdownloads / year
41.8%test coverage
13/13flavors OK

Overview

About
Maintained by Jinseob KimCRAN page ↗GitHub ↗Website ↗Issues ↗Declared funder: Zarathu

The function 'jskm()' creates publication quality Kaplan-Meier plot with at risk tables below. 'svyjskm()' provides plot for weighted Kaplan-Meier estimator.

Changes in 0.6.3
  • Fix: jskm and svyjskm NEJM theme inset figure was lost when table = TRUE. The grob-based width alignment introduced in 0.5.20 dropped the patchwork inset; the inset is now applied after width alignment via patchwork::wrap_elements() so both the in-figure and the plot/risk-table x-axis alignment are preserved.
  • Fix: svyjskm single curve (svykm object from formula ~ 1) drew no line and showed a broken legend. The strata column stayed character, so levels(df$strata) <- ystratalabs only set an attribute; the later rbind with a factor zeros row produced NA strata. Now coerces to factor before relabeling.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 3.9 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-10-25
  • ERROR12 OK, 1 ERROR2026-10-24
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
Show 4 earlier changesHide 4 earlier changes
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK13 OK2026-05-10
  • WARNING12 OK, 1 WARNING2026-05-09
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.6.3
READMEYes · 132 wordsVignettesYes · 1 · dynamicNEWSYes · 100% structured · mentions 0.6.3Citation fileNoWebsiteYes · pkgdown
Help pages
3 (1 internal)
Examples that run
100%2 run in a plain check
Exported functions with examples
100%
Documented parameters
95%
Return-value docs
100%
Help pages citing references
0%
Vignettes (1)

Downloads

10.5K
CRAN downloads in the past year
Rank #4,226 · ~29/day · ~871/mo
Daily download trend is not available in this view yet.
78230 days
2.1K90 days
10.5K1 year
Compare downloads with other packages →
Also on145 r2u4 autocran2.6K conda_forge

Repository

29Stars
24Forks
0Open issues
1Open PRs
30Releases
257Commits
18Commit identities
kaplan-meier-plotweighted-kaplan-meier-plotr
License file reads as Apache-2.0 · 257 commits · Last activity 2026-05-27 · 0% stars, 30d · Default branch at 0.6.4, ahead of CRAN 0.6.3 (checked 2026-10-22)
Responsiveness
How these are sampled
PRs merged (all time)
78%
Median days to close, 50 most recently updated closed issues
136
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2025-09-29 · 282026-07-08 · 29
PracticesBeta

12 development-tooling and community-health practices detected across 5 families in the upstream repository

Checks run against github.com/jinseob2kim/jskm on 2026-10-22.

Continuous integration (3)
GitHub ActionsR CMD check workflowAppVeyor

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2025-09-04 · The repository has a site deploy workflow

pkgdown site last built 2025-09-04, before release 0.6.3 (2026-05-27)

Coverage (1)
Coverage reporting
CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Show all practicesHide 1 practice
Lint, format, editor (2)
Lint workflowRStudio project
How this is detected·Detection ruleset v4 (2026-10-20)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Claude Codefirst seen on or before 2025-09-04
    Commits: at least 5 crediting it in the message
Models named in its commits
  • Claude Opus 4.72 commits · May 2026
  • Claude Opus 4.61 commit · Mar 2026
Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
9 external dependencies (excludes base and recommended)

Installing jskm adds 73 packages (35 with compiled code, 71 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, doBy 4.3 MB.

Depends (1)
R >= 3.4.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
1direct
0indirect
Imports 1
Depends, Imports or LinkingTo, most downloaded first

People & History

People (9)
Author, Maintainer since 0.2.7 (2019)
Author · added in 0.5.13
Author · added in 0.5.3
Author · added in 0.5.20
Author · added in 0.5.14
Author · added in 0.6.0
Author · added in 0.6.1
Author · added in 0.6.1
Copyright holder, Funder · added in 0.3.1
Listed in earlier versions (1)
Anpanman
no longer listed · 0.2.7 to 0.3.0
Releases (31)

Pick two releases to compare their code metrics.

Show 24 earlier eventsHide 24 earlier events

Package metadata

First published
2019-02-01
Total releases
31 / 7 yrs
License
Apache License 2.0 OSI
Minimum R
≥ 3.4.0
Download size
912 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("jskm")
Kim, J., Zarathu, Choi, s., Chun, y., Hahn, W., Jee, M., Kim, T., Lee, S., & Oh, S. (2026). jskm: Kaplan-Meier Plot with 'ggplot2' (Version 0.6.3) [Computer software]. https://doi.org/10.32614/CRAN.package.jskm

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for jskm version 0.6.3 [Data set]. HJJB, LLC. Data release v2026-10-25. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy