std_km_group | R Documentation |
A function to plot a Kaplan-Meier curve with groups.
std_km_group(
time,
status,
var,
var.label,
xlab,
ylab,
time.points,
risk.table,
...
)
time |
a numeric vector. |
status |
a numeric vector of '0' and '1'. |
var |
a character vector. |
var.label |
a character value specifying the group label. |
xlab |
a character value specifying the x axis label. |
ylab |
a character value specifying the y axis label. |
time.points |
a numeric vector of time points to evaluate the survival curves. |
risk.table |
a logical value indicating whether the risk table should be calculated. |
... |
additional input arguments that may be used when creating your own function. |
This function defines the standard of Kaplan-Meier curves
with groups to be plotted by the function nt_km
.
It can be modified by the user.
a ggplot object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.