Learn R Programming

simPH (version 0.7.2)

simGG.simtvc: Plot simulated time-varying hazard ratios or stratified time-varying hazard rates from a simtvc class object using ggplot2

Usage

## S3 method for class 'simtvc':
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, palpha = 0.1, ...)

Arguments

obj
a simtvc class object
from
numeric time to start the plot from.
to
numeric time to plot to.
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.
title
the plot's main title
smoother
what type of smoothing line to use to summarize the plotted coefficient
spalette
colour palette for use in qi = "Hazard Rate". 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 = "Relative Hazard"} or code{qi = "First Difference"}.}

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