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

plotRRWFit3R 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

plotRRWFit3(
  data,
  dataRtCol = "rt",
  dataPhitCol = "pHit",
  rtFitCol = "rtFit",
  pHitFitCol = "pCross",
  correctCol = "correct",
  overlapCol = "overlap",
  condCol = NULL,
  numSimsToPlot = 0,
  plotFilename = NULL,
  multiplePlotsPerPage = TRUE,
  yMinMixRT = NULL,
  xMinMax = NULL,
  combineRThvoRTlvo = FALSE,
  maxIntensityChanges = 8,
  maxHueChanges = 10,
  df.legend = 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

numSimsToPlot

A number specifying how many simulation runs are in the dataset and should be plotted. Default is 0, indicating that no simulations should be plotted.

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.

multiplePlotsPerPage

A boolean that identifies whether to print multiple 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.

combineRThvoRTlvo

A boolean that specifies whether to print the RT_HVO and RT_LVO on the same graph (TRUE) or separate graphs (FALSE). DEFAULT = FALSE.

maxIntensityChanges

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

maxHueChanges

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

df.legend

a legend dataframe created by ch.getPlotLegendVals().

xMinMixRT

A vector of 2 numbers that identifies the c(min, max) for the x-axis (overlap). DEFAULT = c(0,1).

Value

.

Examples

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

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