paired.plotMcNeil: Parallel lines plot

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/global1.R

Description

Produce a parallel lines plot for paired data.

Usage

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

Arguments

df

a data frame.

condition1

name of the variable corresponding to the second sample.

condition2

name of the variable corresponding to the first sample.

groups

names of the variable corresponding to groups (optional).

subjects

names of the variable corresponding to subjects.

facet

faceting or grouping strategy for plotting?

...

further arguments to be passed to methods.

Value

a graphical object of class ggplot.

Author(s)

Stephane CHAMPELY

References

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

See Also

plotBA

Examples

1
2
data(PrisonStress)
paired.plotMcNeil(PrisonStress,"PSSbefore","PSSafter",subjects="Subject")

Example output

Loading required package: MASS
Loading required package: gld
Loading required package: mvtnorm
Loading required package: lattice
Loading required package: ggplot2

Attaching package: 'PairedData'

The following object is masked from 'package:base':

    summary

PairedData documentation built on May 1, 2019, 6:49 p.m.