Learn R Programming

AF (version 0.1.2)

plot.AF: Plot function for objects of class "AF" from the function AF.ch.

Description

Creates a simple scatterplot for the AF function with time sequence (specified by the user as times in the AF.ch function) on the x-axis and the AF function estimate on the y-axis.

Usage

"plot"(x, CI = FALSE, confidence.level, CI.transform, xlab, main, ...)

Arguments

x
an object of class AF from the AF.ch function.
CI
if TRUE confidence intervals are estimated and ploted in the graph.
confidence.level
user-specified confidence level for the confidence intervals. If not specified it defaults to 95 percent. Should be specified in decimals such as 0.95 for 95 percent.
CI.transform
user-specified transformation of the Wald confidence interval(s). Options are untransformed, log and logit. If not specified untransformed will be calculated.
xlab
label on the x-axis. If not specified the label "Time" will be displayed.
main
main title of the plot. If not specified the lable "Estimate of the attributable fraction function" will be displayed.
...
further arguments to be passed to the plot function. See plot.