Learn R Programming

simPH (version 0.7.2)

simGG.simspline: Plot simulated penalised spline hazards.

Usage

## S3 method for class 'simspline':
simGG(obj, FacetTime = NULL,
    from = NULL, to = NULL, xlab = NULL, ylab = NULL,
    zlab = NULL, title = NULL, smoother = "auto",
    leg.name = "", lcolour = "#2B8CBE", lsize = 2,
    pcolour = "#A6CEE3", psize = 1, palpha = 0.1,
    surface = TRUE, fit = "linear", ...)

Arguments

obj
a simspline object
FacetTime
a numeric vector of points in time where you would like to plot Hazard Rates in a facet grid. Only relevant if qi == 'Hazard Rate'. Note: the values of Facet Time must exactly match values of the time element of obj
xlab
a label for the plot's x-axis.
ylab
a label of the plot's y-axis. The default uses the value of qi.
zlab
a label for the plot's z-axis. Only relevant if qi = "Hazard Rate" and FacetTime == NULL.
from
numeric time to start the plot from. Only relevant if qi = "Hazard Rate".
to
numeric time to plot to. Only relevant if qi = "Hazard Rate".
title
the plot's main title
smoother
what type of smoothing line to use to summarize the plotted coefficient
leg.name
name of the stratified hazard rates legend. Only relevant if qi = "Hazard Rate".
lcolour
character string colour of the smoothing line. The default is hexadecimal colour lcolour = '#2B8CBE'}. Only relevant if \code{qi = "Relative Hazard"} or code{qi = "First Difference"}.}

item{lsize}{size of the smoothing line. Default is 2.