Learn R Programming

PairedData (version 0.5)

plotMcNeil: parallel lines plot

Description

Produce a parallel lines plot for paired data.

Usage

plotMcNeil(df,condition1,condition2,subjects,groups=NULL,facet=TRUE,...)

Arguments

df
Data frame
condition1
name of the variable corresponding to measurements in the "first" condition
condition2
name of the variable corresponding to measurements in the "second" condition
subjects
name of the variable corresponding to subjects
groups
name of the variable corresponding to groups
facet
In case of groups, faceting (TRUE) or overplotting (FALSE)
...
Arguments to be passed to methods, such as graphical parameters (see par)

References

D.R. McNeil. On graphing paired data. The American Statistician, 46 :307-310, 1992.

See Also

plotCor, plotBA

Examples

Run this code
data(PrisonStress)
plotMcNeil(df=PrisonStress,condition1="PSSbefore",condition2="PSSafter",subjects="Subject")
plotMcNeil(df=PrisonStress,condition1="PSSbefore",condition2="PSSafter",subjects="Subject",groups="Group")

Run the code above in your browser using DataLab