plotRRWFit: This function plots the fitted RRW simulation as a function...

plotRRWFitR Documentation

This function plots the fitted RRW simulation as a function of the empirical data.

Description

Function plots the fitted RRW simulation as a function of the empirical data. It is generally run after the getRRWfit().

Usage

plotRRWFit(
  data,
  dataRtCol = "rt",
  dataPhitCol = "pHit",
  rtFitCol = "rtFit",
  pHitFitCol = "pCross",
  correctCol = "correct",
  overlapCol = "overlap",
  condCol = NULL,
  plotFilename = NULL,
  twoPlotsPerPage = TRUE,
  yMinMixRT = NULL
)

Arguments

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

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.

Value

.

Examples

plotRRWFit (data, "rt", "pHit", "rtFit", "pHitFit", "correct", "overlap")

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