library(condsurv)
library(survival)
library(ggplot2)
library(dplyr)

To plot the conditional survival curves at baseline, and for those who have survived 6 months, 1 year, 1.5 years, and 2 years, we use the gg_conditional_surv function.

The lung dataset from the survival package will be used to illustrate.