ggkmcif.Rdggkmcif() was deprecated in version 0.1.2 and will be removed in a future version.
Please use ggkmcif2() instead.
ggkmcif(
response,
cov = NULL,
data,
type = NULL,
pval = TRUE,
HR = FALSE,
HR_pval = FALSE,
conf.curves = FALSE,
conf.type = "log",
table = TRUE,
times = NULL,
xlab = "Time",
ylab = NULL,
main = NULL,
stratalabs = NULL,
strataname = nicename(cov),
stratalabs.table = NULL,
strataname.table = strataname,
median.text = FALSE,
median.lines = FALSE,
median.CI = FALSE,
set.time.text = NULL,
set.time.line = FALSE,
set.time = 5,
set.time.CI = FALSE,
censor.marks = TRUE,
censor.size = 3,
censor.stroke = 1.5,
fsize = 10,
nsize = 3,
lsize = 1,
psize = 3.5,
median.size = 3,
median.pos = NULL,
median.lsize = 1,
set.size = 3,
set.pos = NULL,
set.lsize = 1,
ylim = c(0, 1),
col = NULL,
linetype = NULL,
xlim = NULL,
legend.pos = NULL,
pval.pos = NULL,
plot.event = 1,
event = c("col", "linetype"),
flip.CIF = FALSE,
cut = NULL,
eventlabs = NULL,
event.name = NULL,
Numbers_at_risk_text = "Numbers at risk",
HR.digits = 2,
HR.pval.digits = 3,
pval.digits = 3,
median.digits = 3,
set.time.digits = 3,
returns = FALSE,
print.n.missing = TRUE
)Character vector with time and status column names
Covariate column name (optional)
Input dataframe
Plot type ("KM" or "CIF", auto-detected if NULL)
Whether to show p-values
Whether to show confidence bands
Whether to include risk table
Numeric vector of times for the x-axis
X-axis label
Y-axis label
colours vector
Events to plot
Whether to return list with plot and at risk table
See ggkmcif2() for return value details