rrwPlotSGSoutput2: This function plots the rrw data fits from the output of...

rrwPlotSGSoutput2R Documentation

This function plots the rrw data fits from the output of getMeanRRWfit() and the rrwModelList.

Description

Function that plots the rrw data fits from the output of getMeanRRWfit() and the rrwModelList.

Usage

rrwPlotSGSoutput2(
  df.RRWout,
  rrwModelList,
  dataRtCol = "rt",
  dataPhitCol = "pHit",
  rtFitCol = "rtFit",
  pHitFitCol = "pCross",
  correctCol = "correct",
  overlapCol = "overlap",
  fileTag = NULL,
  numSimsToPlot = 10,
  maxIntensityChanges = 8,
  maxHueChanges = 10
)

Arguments

df.RRWout

This is a dataframe containing the output from getMeanRRWfit() or rrwRunWithFixedParameters () or rrwRunSmartGridSearch (). It contains the rrwData and the simulation fits.

rrwModelList

A list that specifies the rrw model. Build the rrwModelList useing rrwAddEffectToRRWModel

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.

maxIntensityChanges

the maximum number of distinguishable intensity changes. DEFAULT = 8.

maxHueChanges

the maximum number of distinguishable hue changes. DEFAULT = 10. '

Value

Several files containing plots are saved. The plots are duplicated: one version with each simulation plus the average and one with just the average.

Examples

rrwPlotSGSoutput(df.fitted, "rt", "pHit", "rtFit", "pCross", "correct", "overlap", fileTag = NULL, numSimsToPlot = 40)

ccpluncw/ccpl_R_RRW documentation built on July 4, 2025, 3:24 p.m.