BA.plot: Bland-Altman plot

Description Usage Arguments Value Examples

View source: R/BAplot.R

Description

This function returns a Bland-Altman (BA) plot with 95 interval. It also calculates the percentage of error. Data can be converted to relative estimation. Validation of differences normality with Shapiro-Wilk test.

Usage

1
BA.plot(a, b, ...)

Arguments

x

A numerical vector

y

A numerical vector

title

The title of the plot

percent

bool for relative estimation (default F)

xlim

c(x,y) limits on x axis

ylim

c(x,y) limits on y axis

xlab

x-axis title

ylab

y-axis title

alpha

point alpha (delfault 0.6)

pch

point type (default 19)

conf.int

Confidence interval (default 0.95)

hide.conf.int

Hide confidence intervals (default FALSE)

hide.ci.text.plot

Hide just the confidence interval values on the plot

reference

c("A", "B", "mean") method to be used on X axis (default "mean")

save

path to save plot (PDF). If only set to TRUE, title is used.

size

c(width,height) in inch, default c(11,8.5)

Value

Base R plot

Examples

1
BA.plot(c(1,2,3,4), c(2,3,4,5), title="My great title")

sauthiem/BlandAltman documentation built on May 7, 2021, 11:05 p.m.