- adjsurv
An adjustedsurv
object created using the adjustedsurv
function.
- times
A vector of points in time, passed to the to
argument of the adjusted_rmst
function or NULL
(default). If NULL
, the adjusted RMST is estimated at all points at which an event occurred. Otherwise it is estimated at times
.
- conf_int
A logical variable indicating whether the bootstrap confidence intervals should be drawn.
- conf_level
Corresponds to the argument of the same name in the adjusted_rmst
function.
- interpolation
Corresponds to the argument of the same name in the adjusted_rmst
function.
- contrast
Which contrast between two adjusted RMST curves should be plotted. Should be one of c("none", "diff", "ratio")
. See argument of the same name in the adjusted_rmst
function.
- group_1
A single character string specifying one of the possible levels of variable
. This can be used in conjunction with the group_2
argument to control how the difference or ratio should be calculated when using either contrast="diff"
or contrast="ratio"
. Ignored when contrast="none"
(default). See argument of the same name in the adjusted_rmst
function.
- group_2
See group_2
.
- max_t
A number indicating the latest survival time which is to be plotted.
- color
A logical variable indicating whether the curves should be colored differently. The custom_colors
argument can be used to directly specify which colors to use. Set to FALSE
to keep the plot black and white. If contrast="diff"
or contrast="ratio"
are used, a character string specifying a color that should be used for the plot can be supplied to this argument directly.
- linetype
A logical variable indicating whether the curves should have different linetypes. The custom_linetypes
argument can be used to directly specify which linetypes to use. Set to FALSE
to keep all lines solid. If contrast="diff"
or contrast="ratio"
are used, a character string specifying a linetype that should be used for the plot can be supplied to this argument directly.
- facet
A logical variable indicating whether the curves should be in different facets.
- size
A number controlling the thickness of the RMST curves.
- alpha
A number controlling the transparency level of the RMST curves.
- xlab
A character string to be used as the X-Axis label of the plot.
- ylab
A character string to be used as the Y-Axis label of the plot.
- title
A character string to be used as the title of the plot. Set to NULL
if no title should be used.
- subtitle
A character string to be used as the subtitle of the plot. Set to NULL
if no subtitle should be used.
- legend.title
A character string to be used as the title of the legend. Set to NULL
if no legend should be included.
- legend.position
A character string specifying the position of the legend. Ignored if legend_title=NULL
.
- gg_theme
A ggplot2
theme object which will be used for the plot.
- custom_colors
A (named) vector to specify the colors of each adjusted RMST curve and possibly its confidence region. Set to NULL
to use the ggplot2
default values. Ignored if color=FALSE
.
- custom_linetypes
A (named) vector to specify the linetype of each adjusted RMST curve. Set to NULL
to use the ggplot2
default values. Ignored if color=FALSE
. Ignored if linetype=FALSE
.
- conf_int_alpha
A number indicating the level of transparency that should be used when drawing the confidence regions.
- line_at_ref
Whether to draw a line at the reference value. This line is drawn at 0 if contrast="diff"
and at 1 if contrast="ratio"
. This and all associated argument are ignored otherwise.
- line_at_ref_size
A single number specifying the thickness of the line at the reference value.
- line_at_ref_color
A single character string specifying the color of the line at the reference value.
- line_at_ref_linetype
A single character string specifying the linetype of the line at the reference value.
- line_at_ref_alpha
A single number between 0 and 1 specifying the transparency level of the line at the reference value.
- ...
Currently not used.