Description Usage Arguments See Also Examples
Creates line plots for numerical dependent variables, adds error bars,
and prints descriptive statistics in a summary table. The function creates plots for
up to 3 factors total, including 1 within-subjects factor (corresponding to the path
of each line) and 0-2 between-subjects factors. The function delegates the primary
computations to ggplot
. Error bars are ±1 SE.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | wrap.line(
dv1,
iv1 = NULL,
iv2 = NULL,
reposition = NULL,
rename1 = NULL,
rename2 = NULL,
rename3 = NULL,
reorder1 = NULL,
reorder2 = NULL,
reorder3 = NULL,
ylim = NULL,
ymajor = NULL,
ylab = NULL,
xlab = NULL,
title = NULL,
size.axis.text.y = 12,
size.axis.text.x = 16,
size.title = 24,
size.panel.title = 12,
size.legend.text = 14
)
|
dv1 |
Multiple column vectors containing the within-subjects dependent variables |
iv1, iv2 |
Column vectors containing the independent variables |
reposition |
Numeric vector to rearrange columns in the summary table and
thus reposition factors within the plot itself. For example, |
rename1, rename2, rename3 |
Character vectors to rename the factor levels in the summary
table and thus rename factor levels within the plot itself. For example,
|
reorder1, reorder2, reorder3 |
Character vectors to reorder the factor levels in the
summary table and thus reorder factor levels within the plot itself. For example,
|
ylim |
Numeric vector containing lower and upper y-axis limits |
ymajor |
Numeric argument representing spacing of y-axis gridlines |
ylab |
String containing the y-axis label |
xlab |
String containing the x-axis label |
title |
String containing the plot title |
size.axis.text.y, size.axis.text.x, size.title, size.panel.title, size.legend.text |
Numeric arguments containing font sizes |
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.