std_km | R Documentation |
A function to plot a Kaplan-Meier curve without groups.
std_km(time, status, xlab, ylab, time.points, risk.table, ...)
time |
a numeric vector. |
status |
a numeric vector of '0' and '1'. |
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
without groups to be plotted by the function nt_km
.
a ggplot object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.