Description Usage Arguments Value
A function to be used with data* passed through prep_all_hazards. It plots the hazard-ratio curves for indicated treatments. Alternatively, one can use a survnma object directly. The function will then calculate the hazards internally. Execution is identical in either case.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
data |
a dataframe obtained directly through function |
treatments |
a list of treatments you want to plot |
reference |
string representing reference treatment |
timesteps |
Vector of evaluation times. Should be of length > 2 |
study_labs |
a collection of labels for the studies |
colors |
a collection of colors for graphing |
xlab |
a string to be used for labelling the x-axis |
ylab |
a string to be used for labelling the y-axis |
xlim |
specifying a limit for the x-axis |
ylim |
specifying a limit for the y-axis |
title |
title to be used for the hazard plot |
interval |
boolean whether you want a credible interval on the curve |
a figure of required hazard-ratio plots
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.