plot_slices() plots slices of the (log-)hazard with two time
scales, at selected values of one of the two time dimensions.
Usage
plot_slices(x, y, direction, plot_options = list())Arguments
- x
A vector of values for the x-axis. This is a vector of values over the axis opposite to the one where the sliced are cut.
- y
A matrix of (log-)hazard values.
- direction
Either
"u"or"s".- plot_options
A list of options for the plot:
loghazardA Boolean. Default isFALSE. IfFALSEthe function returns a plot of cross-sections from the hazard surface, ifTRUEthe function returns a plot of cross-sections from the log-hazard surface.log10hazardA Boolean. Default isFALSE. IfTRUEreturns a plot of cross-sections from the log10-hazard surface.col_paletteA function defining the color palette. The default palette isgrDevices::gray.colors().n_shadesThe number of color shades to plot, default is 50.mainThe title of the plot.xlabThe label of the first time axis (plotted on the x axis).ylabThe label of the second time axis (plotted on the y axis).xlimA vector with two elements defining the limits of the time scale on the x axis.ylimA vector with two elements defining the limits of the time scale on the y axis.cex_mainThe magnification to be used for the main title, default is1.2.cex_labThe magnification to be used for the axis labels, default is1.lwdThe line's width. Default is2.