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)
An object of class mixpch
, resembling the survival function in treatment group 0
An object of class mixpch
, resembling the survival function in treatment group 1
An overall title for the plot
A maximum value for the x-axis. The plot is drawn using xlim = c(0, xmax)
A maximum value for the y-axis for the hazards plot. The plot is drawn using ylim = c(0, ymax_haz)
A maximum value for the y-axis for the hazards ratio plot. The plot is drawn using ylim = c(0, ymax_hr)