powered by
Produce a squared scatterplot for paired data (same units for both axes), including the first bisector line for reference.
paired.plotCor(df, condition1, condition2, groups = NULL, facet = TRUE, ...)
a data.frame.
name of the variable corresponding to the first sample.
name of the variable corresponding to the groups (optional).
faceting or grouping strategy for plotting?
arguments to be passed to methods
a graphical object of class ggplot.
# NOT RUN { data(PrisonStress) paired.plotCor(PrisonStress,"PSSbefore","PSSafter") # Changing the theme of the ggplot object paired.plotCor(PrisonStress,"PSSbefore","PSSafter")+theme_bw() # }
Run the code above in your browser using DataLab