rrwPlotSGSoutputByGroup | R Documentation |
Function that plots the rrw data fits from the output of getMeanRRWfit() and the rrwModelList.
rrwPlotSGSoutputByGroup(
df.RRWout,
grpCols = NULL,
dataRtCol = "rt",
dataPhitCol = "pHit",
rtFitCol = "rtFit",
pHitFitCol = "pCross",
correctCol = "correct",
overlapCol = "overlap",
fileTag = NULL,
numSimsToPlot = 10
)
df.RRWout |
This is a dataframe containing the output from getMeanRRWfit() or rrwRunWithFixedParameters () or rrwRunSmartGridSearch (). It contains the rrwData and the simulation fits. |
grpCols |
A vector of strings containing the grouping columns. If NULL this argument will be ignored. DEFAULT = NULL |
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 "rt" |
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 boolean that specifies the name of the column that specifies if response was correct or incorrect. It must be coded as a boolean, whereby correct == TRUE, and 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" |
fileTag |
A string that is appended to the name of files to identify the analysis and experiment. The default is NULL, whereby the filetag will just be based on a timestamp. |
numSimsToPlot |
A number specifying how many simulation runs are in the dataset and should be plotted. Default is 10. ' |
Several files containing plots are saved. The plots are duplicated: one version with each simulation plus the average and one with just the average.
rrwPlotSGSoutput(df.fitted, "rt", "pHit", "rtFit", "pCross", "correct", "overlap", fileTag = NULL, numSimsToPlot = 40)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.