# NOT RUN {
library(VWPre)
# For plotting average differences with SE bars...
plot_avg_diff(data = dat, xlim = c(0, 1000), type = "proportion",
DiffCols = c(IA_1_P = "Target", IA_2_P = "Rhyme"),
Condition1 = NA, Condition2 = NA, Cond1Labels = NA, Cond2Labels = NA,
ErrorBar = TRUE, VWPreTheme = TRUE, ErrorBand = FALSE,
ErrorType = "SE")
# For plotting conditional average differences (one condition) with the
# included theme and 95% pointwise CI bars.
plot_avg_diff(data = dat, xlim = c(0, 1000), , type = "proportion",
DiffCols = c(IA_1_P = "Target", IA_2_P = "Rhyme"),
Condition1 = "talker", Condition2 = NA, Cond1Labels = c(CH1 = "Chinese 1",
CH10 = "Chinese 3", CH9 = "Chinese 2", EN3 = "English 1"),
Cond2Labels = NA, ErrorBar = TRUE,
VWPreTheme = TRUE, ErrorBand = FALSE,
ErrorType = "CI", ConfLev = 95, CItype = "pointwise")
# For plotting conditional average differences (two conditions) with the
# included theme and 95% simultaneous CI bands.
plot_avg_diff(data = dat, xlim = c(0, 1000), , type = "proportion",
DiffCols = c(IA_1_P = "Target", IA_2_P = "Rhyme"),
Condition1 = "talker", Condition2 = "Exp", Cond1Labels = c(CH1 = "Chinese 1",
CH10 = "Chinese 3", CH9 = "Chinese 2", EN3 = "English 1"),
Cond2Labels = c(High = "H Exp", Low = "L Exp"), ErrorBar = FALSE,
VWPreTheme = TRUE, ErrorBand = TRUE,
ErrorType = "CI", ConfLev = 95, CItype = "simultaneous")
# For a more complete tutorial on VWPre plotting functions:
vignette("SR_Plotting", package="VWPre")
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab