Kaplan-Meier plot with a risk table: how to make it journal-ready

Short answer

A journal-ready Kaplan-Meier plot with a risk table has:

  1. Step curves for each group, from 100% at time 0.
  2. Censoring marks: small ticks where participants left follow-up without an event.
  3. Shaded 95% confidence bands, so readers see where the estimate is uncertain.
  4. A risk table under the x-axis, with the number at risk, and ideally also events and censored, at each time point.
  5. Clear axes: time with units, survival in % from 0 to 100, and the same time points in the table and on the axis.

This is the KMunicate format, proposed in BMJ Open in 2019.

The Kaplan-Meier plot is the standard way to show time-to-event results: survival, relapse, failure. It is also easy to misread. A curve that drops sharply at the end may rest on a handful of people, and without a risk table the reader cannot tell.

This guide shows the parts of a journal-ready Kaplan-Meier plot with a risk table, using a worked example, the KMunicate recommendations, and short code for R and Python.

The parts of a Kaplan-Meier plot

Kaplan-Meier plot of event-free survival over 36 months for drug (blue) and placebo (orange), with shaded 95% confidence bands and tick marks for censored participants. The drug curve stays higher, with a median of about 24 months against about 11 months for placebo. Below the plot, a table gives the number at risk, events and censored for each group at 0, 6, 12, 18, 24, 30 and 36 months.
A Kaplan-Meier plot with an extended risk table, from simulated data: drug against placebo, 120 participants each. Bands are 95% confidence intervals; ticks are censored observations.How this was made: I made this from simulated data in Python, computing the curves, bands and counts.
  • The curve starts at 100% and steps down each time an event happens. Its height at any time is the estimated proportion still event-free.
  • Censoring marks are the small vertical ticks. Each is a participant who left follow-up without the event, for example because the study ended. They leave the risk set but do not make the curve drop.
  • The confidence band shows the 95% confidence interval. It widens to the right as fewer people remain.
  • The median is where the curve crosses 50%: about 24 months for the drug and 11 months for placebo in the example.
  • The risk table under the plot shows how many people the curve rests on at each time point.

The risk table: at risk, events and censored

A basic risk table gives one row per group: the number still at risk at each time point. KMunicate recommends an extended table with three rows per group: at risk, events so far, and censored so far. At every time point the three add up to the group's total, so a reader can see how much of the drop is events and how much is people leaving follow-up.

The risk table from the example, for the drug group.
Months 0 6 12 18 24 30 36
At risk 120 98 71 53 38 25 11
Events 0 22 37 43 52 59 64
Censored 0 0 12 24 30 36 45

At 36 months only 11 people remain in the drug group, which is why the band is so wide at the right of the plot. KMunicate notes the format works best with 4 groups or fewer.

Cropped screenshot of the KMunicate page from the clinical trials unit at UCL, with its name above it. It explains that Kaplan-Meier plots are the main way to show time-to-event data, that censoring makes them hard to read, and that the KMunicate solution is an extended risk table showing at each time point how many participants are at risk, have had the event or are censored.
From the source's own page: The KMunicate page, read 15 November 2026. GoFigures is not affiliated with the MRC Clinical Trials Unit at UCL.How this was made: A cropped screenshot of the source's own page, taken on 15 November 2026 and framed with the source's name.

Making it journal-ready

  • Axes: survival from 0 to 100% (or 0 to 1), time with its unit, and ticks at the same time points as the risk table.
  • Stop where the data thin out. Many authors end the x-axis where few participants remain, rather than trailing off on one or two people. Say in the legend where and why.
  • Colours: two clearly different colours that also work for colour-blind readers, such as blue and orange, with the same colours in the risk table labels. See our colour-blind safe palettes.
  • Bands: light, transparent shading, so the curves stay readable where the bands overlap.
  • Size: a plot with a three-row table per group usually needs a full column or more. Keep the table numbers above the journal's minimum text size at final size; see the journal figure requirements.
  • Legend: say what the bands are (95% confidence intervals), what the ticks mean (censored observations), and the test or hazard ratio if you report one. Our figure legend guide shows the pattern.
  • File: export as vector PDF or EPS, so the thin steps and small numbers stay sharp.

How to make one in R and Python

R, KMunicate format: the KMunicate package draws the extended risk table and bands for you.

library(survival)
library(KMunicate)
fit <- survfit(Surv(time, status) ~ group, data = df)
KMunicate(fit = fit, time_scale = seq(0, 36, by = 6))

R, survminer: a classic plot with a number-at-risk table.

library(survminer)
ggsurvplot(fit, conf.int = TRUE, risk.table = TRUE, censor = TRUE)

Python, lifelines: fit each group, plot it, then add the counts under the axis.

from lifelines import KaplanMeierFitter
from lifelines.plotting import add_at_risk_counts
km_drug = KaplanMeierFitter().fit(t_drug, e_drug, label="Drug")
km_plac = KaplanMeierFitter().fit(t_plac, e_plac, label="Placebo")
ax = km_drug.plot_survival_function(ci_show=True, show_censors=True)
km_plac.plot_survival_function(ax=ax, ci_show=True, show_censors=True)
add_at_risk_counts(km_drug, km_plac, ax=ax)

Then set the figure to the printed width and save as PDF. Our figure resolution guide explains why.

Common Kaplan-Meier plot mistakes

  • No risk table, so readers cannot tell how many people the end of the curve rests on.
  • Table time points that do not match the axis ticks.
  • Smoothed or straight-line curves. Kaplan-Meier estimates are steps.
  • Censoring marks missing, or so large they hide the curve.
  • Red and green groups, which many colour-blind readers cannot tell apart.
  • A y-axis that does not start at 0, which makes differences look bigger.
  • No legend for the bands and ticks.

For the flow of participants in the same trial, see the CONSORT flow diagram guide.

Questions

What is a number at risk table?

A small table under a Kaplan-Meier plot showing how many participants are still being followed and event-free at each time point, for each group. It tells readers how much data each part of the curve rests on.

What do the tick marks on a Kaplan-Meier curve mean?

They are censored observations: participants who left follow-up without the event, for example because the study ended or they withdrew. They leave the risk set but do not make the curve drop.

What is the KMunicate format?

A way of presenting Kaplan-Meier plots proposed by Morris and colleagues in BMJ Open in 2019: an extended risk table with at risk, events and censored counts, and shaded confidence intervals around each curve.

Should a Kaplan-Meier plot show confidence intervals?

KMunicate recommends it, with light, transparent shading. The bands show that estimates later in follow-up, based on fewer people, are less certain.

How do I read the median survival from the plot?

Find where each curve crosses 50% and read the time below it. If a curve never falls to 50%, the median is not reached.

How do I add a risk table in R?

Use the KMunicate package for the extended table, or survminer's ggsurvplot with risk.table = TRUE for a number-at-risk table.

Sources

Sources (3)
  1. Proposals on Kaplan-Meier plots in medical research and a survey of stakeholder views: KMunicateBMJ Open · checked 2 November 2026 · Morris TP, Jarvis CI, Cragg W, et al. BMJ Open 2019;9:e030215. doi:10.1136/bmjopen-2019-030215.
  2. KMunicateMRC Clinical Trials Unit at UCL · checked 2 November 2026 · The recommendations and code.
  3. KMunicate R packageCRAN · checked 2 November 2026

Changes: 15 November 2026, a cropped screenshot of the source page added, read that day. 2 November 2026, first published.

ShareEmail

Spotted an error, or a rule that has changed? Please write to support@gofigures.app and I will correct it and note the change on this page.

Join the waiting list

We only use your email for GoFigures. Leave any time. Privacy