Description Usage Arguments Value Author(s) References See Also Examples
Produce a Bland-Altman plot for paired data, including a confidence region for the mean of the differences.
1 2 | paired.plotBA(df, condition1, condition2, groups = NULL,
facet = TRUE, ...)
|
df |
a data.frame. |
condition1 |
name of the variable corresponding to the first sample. |
condition2 |
name of the variable corresponding to the first sample. |
groups |
name of the variable corresponding to the groups (optional). |
facet |
faceting or grouping strategy for plotting? |
... |
arguments to be passed to methods |
a graphical object of class ggplot.
Stephane CHAMPELY
Bland, J.M. and Altman D.G. (1999) Measuring agreement in method comparison studies. Statistical Methods in Medical Research, 8, 135-160.
Meek, D.M. (2007) Two macros for producing graphs to assess agreement between two variables. In Proceedings of Midwest SAS Users Group Annual Meeting, October 2007.
tmd
1 2 3 4 5 | data(PrisonStress)
paired.plotBA(PrisonStress,"PSSbefore","PSSafter")
# Extending the resulting ggplot object by faceting
paired.plotBA(PrisonStress,"PSSbefore","PSSafter")+facet_grid(~Group)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.