powered by
Create a Bland-Altman plot as described by Bland & Altman (1986).
plot_bland_altman(x, ...)
A ggplot object.
ggplot
An object of class lvmisc_cv or an object containing a model.
lvmisc_cv
Additional arguments to be passed to ggplot2::aes().
ggplot2::aes()
Bland, J.M. & Altman, D.G. (1986). Statistical methods for assessing agreement between two methods of clinical measurement. Lancet, 8(1), 307-10. tools:::Rd_expr_doi("https://doi.org/10.1016/S0140-6736(86)90837-8")
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))
Run the code above in your browser using DataLab