plotMeanRRWFit | R Documentation |
Function plots the fitted RRW simulation as a function of the empirical data. It is generally run after the getRRWfit().
plotMeanRRWFit(
data,
dataRtCol = "rt",
dataPhitCol = "pHit",
rtFitCol = "rtFit",
pHitFitCol = "pCross",
correctCol = "correct",
overlapCol = "overlap",
condCol = NULL,
numSimsToPlot = 10,
plotFilename = NULL,
twoPlotsPerPage = TRUE,
yMinMixRT = NULL
)
data |
This is a dataframe that must contain the following columns: overlap; RT (often a median); the proportion correct/incorrect; whether or not the row specifies a correct or incorrect trial. The dataset can also contains columns that effect code the influence of different parameters. |
dataRtCol |
A string that identifies the name of the column in data that contains the RTs for the specific overlap/correct/condition combination. Default is "rt" |
dataPhitCol |
A string that identifies the name of the column in data that contains the proportion of trials that are either correct or incorrect for the specific overlap/correct/condition combination. Default is "pHit" |
rtFitCol |
A string that identifies the name of the column in data that contains the RRW fit of the RTs for the specific overlap/correct/condition combination. Default is "rtFit" |
pHitFitCol |
A string that identifies the name of the column in data that contains the RRW fit of the proportion of trials that are either correct or incorrect for the specific overlap/correct/condition combination. Default is "pCross" |
correctCol |
A string that identifies the name of the column in data that identifies whether the trials were correct (TRUE) or incorrect (FALSE). The default is "correct" |
overlapCol |
A string that identifies the name of the column in data that contains the distributional overlaps for each row. The default is "overlap" |
condCol |
A string that identifies the name of the column in data that identifies the conditions that will be plotted as separate lines. DEFAULT = NULL |
numSimsToPlot |
A number specifying how many simulation runs are in the dataset and should be plotted. . Default is 10. |
plotFilename |
A string that identifies the name of file (.pdf) in which the plot will be saved. The default is NULL, whereby the plot will not be saved. |
twoPlotsPerPage |
A boolean that identifies whether to print two plots per page. DEFAULT = TRUE. |
yMinMixRT |
A vector of 2 numbers that identifies the c(min, max) for the y-axis of the RT graph. If not entered, then the function will calculate a pretty min and max. DEFAULT = NULL. |
.
plotRRWFit (data, "rt", "pHit", "rtFit", "pHitFit", "correct", "overlap")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.