plot.CHR: Plot method for 'CHR' objects

Description Usage Arguments See Also Examples

Description

Plot the cumulative hazard ratio estimates and their 95% confidence bands for the comparison between two dynamic treatment regimes

Usage

1
2
3
4
## S3 method for class 'CHR'
plot(x, log.CHR = FALSE, confidence.interval = FALSE, 
xlab = "Time", line.color = c("black", "grey30", "grey50", 
"grey60", "grey70", "grey80"), legend.position = "right", ...)

Arguments

x

an object of class CHR, usually returned by the CHRestimate function.

log.CHR

if log.CHR=FALSE (default), the cumulative hazard ratio estimates are plotted; if log.CHR=TRUE, the log cumulative hazard ratio estimates are plotted

confidence.interval

If confidence.interval=FALSE (default), the 95% confidence bands are not plotted. If confidence.interval=TRUE, the 95% confidence bands are plotted as shadows.

xlab

label given to the x-axis. Default is "Time".

line.color

colors for the lines. Default are "black", "grey30", "grey50", "grey60", "grey70", and "grey80" for A1B2 vs. A1B1, A2B1 vs. A1B1, A2B2 vs. A1B1, A2B1 vs. A1B2, A2B2 vs. A1B2, and A2B2 vs. A2B1 respectively.

legend.position

the position of legend: "left", "right" (default), "bottom", "top", or two-element numeric vector (e.g. c(0.6,0.9))

...

for future methods

See Also

CHR.object, print.CHR, summary.CHR, print.summary.CHR

Examples

1
2
3
4
5
6
## Not run: 
data("CHRdata")
est <- CHRestimate(data=CHRdata)
plot(est, confidence.interval=TRUE)
plot(est, log.CHR=TRUE, confidence.interval=FALSE)
## End(Not run)

DTR documentation built on May 2, 2019, 3:26 p.m.