Difference against mean for two measurement methods, with the mean bias
and 95% limits of agreement drawn as reference lines — the standard
method-comparison plot.
geom_bland_altman(
mapping = NULL,
data = NULL,
color = NULL,
size = NULL,
alpha = NULL
)
Arguments
- mapping, data
Standard layer overrides. Map the two methods'
measurements to x and y; the stat computes mean and difference.
- color
Point color.
- size
Point radius.
- alpha
Point opacity.
Value
A Layer to add with +.
Examples
set.seed(1)
a <- rnorm(60, 100, 12)
d <- data.frame(method_a = a, method_b = a + rnorm(60, 2, 5))
ggnext(d, aes(method_a, method_b)) + geom_bland_altman()
#> <ggnext plot>
#> data: 60 x 2
#> aes: x = method_a, y = method_b
#> layers: 1
#> coord: cartesian
#> mode: static