Anne
Anne

Reputation: 261

Smooth confidence intervals on Kaplan Meier

I'm attempting to plot Kaplan-Meier curves using the following tutorial specifically the lines:

require("survival")
fit <- survfit(Surv(time, status) ~ sex, data = lung)
ggsurvplot(fit, linetype = "strata", conf.int = TRUE, pval = TRUE, palette = "Dark2")

I plotted the image from my computer on the right, the plot from the tutorial is on the left:enter image description here

While it's subtle, the shape of the confidence intervals in my plot is very jagged while the tutorials is quite smooth. How can I get the "smooth" look?

I'm using R version 3.4.1

Upvotes: 0

Views: 1399

Answers (1)

Anne
Anne

Reputation: 261

After reverting back to older versions of Survival (2.38-3), Survminer (0.2.0), and ggplot2 (2.0.0), I was able to recreate the example plot with "smooth" CIs.

Upvotes: 0

Related Questions