data(PrisonStress)
plotCor(df=PrisonStress,condition1="PSSbefore",condition2="PSSafter")
plotCor(df=PrisonStress,condition1="PSSbefore",condition2="PSSafter",groups="Group")
plotCor(df=PrisonStress,condition1="PSSbefore",condition2="PSSafter",groups="Group",facet=FALSE)
Run the code above in your browser using DataLab