View source: R/additional_functions_1-1.R
plot_shhr | R Documentation |
A convenience function that uses the generic plot function in the nph package to plot the three functions in a layout of 3 columns and 1 row.
plot_shhr(A, B, main = "", xmax = NULL, ymax_haz = NULL, ymax_hr = NULL)
A |
An object of class |
B |
An object of class |
main |
An overall title for the plot |
xmax |
A maximum value for the x-axis. The plot is drawn using xlim = c(0, xmax) |
ymax_haz |
A maximum value for the y-axis for the hazards plot. The plot is drawn using ylim = c(0, ymax_haz) |
ymax_hr |
A maximum value for the y-axis for the hazards ratio plot. The plot is drawn using ylim = c(0, ymax_hr) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.