Description Usage Arguments Value Author(s) References See Also Examples
Produce a profile plot or before-after plot or 1-1 plot for paired data.
1 2 | paired.plotProfiles(df, condition1, condition2, groups = NULL,subjects,
facet = TRUE, ...)
|
df |
a data frame. |
condition1 |
name of the variable corresponding to the second sample. |
condition2 |
name of the variable corresponding to the first sample. |
groups |
names of the variable corresponding to groups (optional). |
subjects |
names of the variable corresponding to subjects. |
facet |
faceting or grouping strategy for plotting? |
... |
further arguments to be passed to methods. |
a graphical object of class ggplot.
Stephane CHAMPELY
Cox, N.J. (2004) Speaking data: graphing agreement and disagreement. The Stata Journal, 4, 329-349.
plotBA,plotMcNeil
1 2 3 4 5 | data(PrisonStress)
paired.plotProfiles(PrisonStress,"PSSbefore","PSSafter",subjects="Subject",groups="Group")
# Changing the line colour
paired.plotProfiles(PrisonStress,"PSSbefore","PSSafter")+geom_line(colour="red")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.