plot.CHR {DTR} | R Documentation |
CHR
objects
Plot the cumulative hazard ratio estimates and their 95% confidence bands for the comparison between two dynamic treatment regimes
## 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", ...)
x |
an object of class |
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 |
CHR.object
, print.CHR
, summary.CHR
, print.summary.CHR
## Not run:
data("CHRdata")
est <- CHRestimate(data=CHRdata)
plot(est, confidence.interval=TRUE)
plot(est, log.CHR=TRUE, confidence.interval=FALSE)
## End(Not run)