Learn R Programming

PairedData (version 0.5)

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

plotSliding(df,condition1,condition2,xlab = "", ylab = "", ...)

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
xlab
new label for X axis
ylab
new label for Y axis
...
Arguments to be passed to methods, such as graphical parameters (see par)

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

plotCor, plotBA, plotMcNeil

Examples

Run this code
data(PrisonStress)
plotSliding(df=PrisonStress,condition1="PSSbefore",condition2="PSSafter")
plotSliding(df=PrisonStress,condition1="PSSbefore",condition2="PSSafter",xlab="Before",ylab="After")

Run the code above in your browser using DataLab