Learn R Programming

PairedData (version 0.9.1)

plotSliding: Sliding square plot

Description

Produce a sliding square plot for paired data which mixes the usual scatterplot with the tukey mean-difference plot.

Usage

## S3 method for class 'paired':
plotSliding(object,...)

Arguments

object
an object of class paired.
...
arguments to be passed to methods.

Value

  • A graphical object of class ggplot.

References

  • P.R. Rosenbaum. Exploratory plot for paired data. American Statistician, 43, 108-110, 1989.
  • J.S. Pontius and R.M. Schantz. Graphical analyses of a twoperiod crossover design. The American Statistician, 48, 249-253, 1994.
  • R.M. Pruzek and J.E. Helmreich. Enhancing dependent sample analyses with graphics. Journal of Statistics Education, 17, 2009.

See Also

plotBA,plotProfiles,plotMcNeil

Examples

Run this code
data(PrisonStress)
with(PrisonStress,plotSliding(paired(PSSbefore,PSSafter)))

Run the code above in your browser using DataLab