plot_bland_altman: Create a Bland-Altman plot

View source: R/plot_bland_altman.R

plot_bland_altmanR Documentation

Create a Bland-Altman plot

Description

Create a Bland-Altman plot as described by Bland & Altman (1986).

Usage

plot_bland_altman(x, ...)

Arguments

x

An object of class lvmisc_cv or an object containing a model.

...

Additional arguments to be passed to ggplot2::aes().

Value

A ggplot object.

References

  • Bland, J.M. & Altman, D.G. (1986). Statistical methods for assessing agreement between two methods of clinical measurement. Lancet, 8(1), 307-10. \Sexpr[results=rd]{tools:::Rd_expr_doi("https://doi.org/10.1016/S0140-6736(86)90837-8")}

Examples

mtcars <- tibble::as_tibble(mtcars, rownames = "car")
m <- stats::lm(disp ~ mpg, mtcars)
cv <- loo_cv(m, mtcars, car)
plot_bland_altman(cv, colour = as.factor(am))

lvmisc documentation built on June 22, 2024, 12:18 p.m.