Description Usage Arguments Value Examples
Plot results from the output of dmcObservedData. The plot can be an overall summary, or individual plots (rtCorrect, errorRate, rtErrors, cdf, caf, delta, deltaErrors, all).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | ## S3 method for class 'dmcob'
plot(
x,
figType = "summary",
subject = NULL,
legend = TRUE,
labels = c("Compatible", "Incompatible"),
cols = c("black", "green", "red"),
errorBars = FALSE,
errorBarType = "sd",
ylimRt = NULL,
ylimErr = NULL,
xlimCDF = NULL,
ylimCAF = NULL,
cafBinLabels = FALSE,
ylimDelta = NULL,
xlimDelta = NULL,
ylimDeltaErrors = NULL,
xlabs = TRUE,
ylabs = TRUE,
xaxts = TRUE,
yaxts = TRUE,
resetPar = TRUE,
...
)
|
x |
Output from dmcObservedData |
figType |
summary, rtCorrect, errorRate, rtErrors, cdf, caf, delta, deltaErrors, all |
subject |
NULL (aggregated data across all subjects) or integer for subject number |
legend |
TRUE/FALSE (or FUNCTION) plot legend on each plot |
labels |
Condition labels c("Compatible", "Incompatible") default |
cols |
Condition colours c("green", "red") default |
errorBars |
TRUE(default)/FALSE Plot errorbars |
errorBarType |
sd(default), or se |
ylimRt |
ylimit for Rt plots |
ylimErr |
ylimit for error rate plots |
xlimCDF |
xlimit for CDF plot |
ylimCAF |
ylimit for CAF plot |
cafBinLabels |
TRUE/FALSE |
ylimDelta |
ylimit for delta plot |
xlimDelta |
xlimit for delta plot |
ylimDeltaErrors |
ylimit for delta plot errors |
xlabs |
TRUE/FALSE |
ylabs |
TRUE/FALSE |
xaxts |
TRUE/FALSE |
yaxts |
TRUE/FALSE |
resetPar |
TRUE/FALSE Reset graphical parameters |
... |
additional plot pars |
Plot (no return value)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | # Example 1 (real dataset)
plot(flankerData)
plot(flankerData, errorBars = TRUE, errorBarType = "se")
plot(flankerData, figType = "delta")
plot(flankerData, figType = "caf")
# Example 2 (real dataset)
plot(simonData)
plot(simonData, errorBars = TRUE, errorBarType = "se")
plot(simonData, figType = "delta", errorBars = TRUE, errorBarType = "sd")
# Example 3 (simulated dataset)
dat <- createDF(nSubjects = 50, nTrl = 50,
design = list("Comp" = c("comp", "incomp")))
dat <- addDataDF(dat,
RT = list("Comp_comp" = c(420, 100, 80),
"Comp_incomp" = c(470, 100, 95)),
Error = list("Comp_comp" = c(5, 3, 2, 1, 2),
"Comp_incomp" = c(15, 8, 4, 2, 2)))
datOb <- dmcObservedData(dat)
plot(datOb, errorBars = TRUE, errorBarType = "sd")
# Example 4 (simulated dataset)
dat <- createDF(nSubjects = 50, nTrl = 50,
design = list("Comp" = c("comp", "incomp")))
dat <- addDataDF(dat,
RT = list("Comp_comp" = c(420, 100, 150),
"Comp_incomp" = c(470, 100, 120)),
Error = list("Comp_comp" = c(5, 3, 2, 1),
"Comp_incomp" = c(15, 8, 4, 2)))
datOb <- dmcObservedData(dat, nCAF = 4)
plot(datOb)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.