Description Usage Arguments Details Value Author(s) Examples
Produces a Bland-Altman plot.
1 2 3 4 5 6 7 8 | blandAltman(x, ...)
## Default S3 method:
blandAltman(x, y,
xlab = "Mean", ylab = "Difference",
main = "Bland-Altman plot",
sdLines = 2, ...)
## S3 method for class 'formula'
blandAltman(formula, data, subset, na.action, ...)
|
x |
measurements returned by method 1. |
y |
measurements returned by method 2. |
xlab |
a title for the x axis: see |
ylab |
a title for the y axis: see |
main |
an overall title for the plot: see |
sdLines |
how many standard deviations from the mean difference should the dotted lines be plotted. |
formula |
a formula of the form lhs ~ rhs where lhs is a numeric variable giving the data values and rhs a factor with two levels giving the corresponding methods. |
data |
an optional matrix or data frame (or similar: see |
subset |
an optional vector specifying a subset of observations to be used. |
na.action |
a function which indicates what should happen when the data contain NAs. Defaults to |
... |
arguments to be passed to |
Plots the pairwise mean of x
and y
versus their pairwise difference. Adds horizontal lines at plus and minus sdLines
standard deviation of the pairwise difference.
When used with the formula
method values should be carefully ordered before in order to produce meaningful results.
Nothing of interest.
Antoine Filipovic Pierucci
1 2 3 | # meaningless examples
blandAltman(extra ~ group, data = sleep)
blandAltman(runif(20), runif(20))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.