Learn R Programming

simPH (version 0.8.1)

simGG.siminteract: Plot simulated linear multiplicative interactions from Cox Proportional Hazards Models

Usage

## S3 method for class 'siminteract':
simGG(obj, from = NULL, to = NULL,
    xlab = NULL, ylab = NULL, title = NULL,
    smoother = "auto", spalette = "Set1", leg.name = "",
    lcolour = "#2B8CBE", lsize = 2, pcolour = "#A6CEE3",
    psize = 1, alpha = 0.1, ribbons = FALSE, ...)

Arguments

obj
a siminteract class object
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.
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.
spalette
colour palette. Not relevant for qi = "Marginal Effect". Default palette is "Set1". See scale_colour_brewer.
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 = "Marginal Effect"}.}

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