BlandAltman: Produce a Bland-Altman style plot for agreement between...

Description Usage Arguments Details Author(s)

View source: R/BlandAltman.R

Description

The Bland-Altman plot places the difference between two measures (such as observations between two readers) on the y-axis against the pair-wise means of the observations on the x-axis. The confidence limits of the differences are plotted. A plot of good agreement should have a random dispersal of points within the confidence limits, and at least 95 Using ggplot, these plots can be generated in a grid with each panel having limits calculated independently of the others.

Usage

1
BlandAltman(data, x1, x2, alpha = 0.05, gg_expr = list())

Arguments

data

A data frame.

alpha

The significance level, or 1 - the confidence level.

gg_expr

A list of additional layers to be added to the ggplot object. For instance, facet_grid() can be an element of the list, or ggtitle, etc.

x

a numeric vector giving one set of values for comparison

y

a numeric vector giving the second set of values for comparison

Details

The use of colour, shape, and other ggplot aesthetics is not recommended with this function. Any data within the panel will be included in the calculation of the confidence limits. If additional aesthetics are being used to show strata of data, these confidence limits will not be correctly calculated.

Author(s)

Benjamin Nutter


nutterb/junkyard documentation built on May 24, 2019, 10:51 a.m.