plot.ai {AgreementInterval} | R Documentation |
plot.ai
Description
The plot method for ai objects
Usage
## S3 method for class 'ai'
plot(x, clin.limit = NA, which = 1:4, ...)
Arguments
x |
ai object from ai function |
clin.limit |
Clinically meaningful lower and upper limit |
which |
Index parameter to control which plot to output, by default, all four plots will be outputed. |
... |
Additional arguments to be passed to the round function and to control number of decimals in the display. |
Details
The four plots include 1) scatterplot of raw data with regression line from the measurement error model, 2) Difference between two measurement methods with original average interval determined by alpha and clinically meaningful lower and upper limit, 3) Difference between two measurement methods with average interval adjusted for fixed bias, as well as 4) Sorted difference bewteen two measurement methods with average interval adjusted for total bias.
Value
Function plot.ai returns 2 by 2 plots (See details)
Author(s)
Jialin Xu, Jason Liao
References
Jason J. Z. Liao, Quantifying an Agreement Study, Int. J. Biostat. 2015; 11(1): 125-133
Examples
a <- c(1, 2, 3, 4, 7)
b <- c(1, 3, 2, 5, 3)
ans <- ai(x=a, y=b)
plot(x=ans)
plot(x=ans, clin.limit=c(-5, 5))