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