getQGraphicValues: Get Q Values for Plotting

Description Usage Arguments Value

View source: R/plots.R

Description

This function gets the Q values so we can plot them over time. It filters the relevant Q values for the image supplied, transmutes it so there's only the name column and the second state Q value. It then groups by name and adds a row (trial) number, pivoting the data wider so there is one column for each of Q values (one for each possible image path). It then calculates the mean of those two Q values and puts that in a column with the same name as the image input. For instance, the Q value of AR is the mean of the Q values for RAR and LAR.

Usage

1

Arguments

Qtable

The Qtable from a simulation (i.e. the output of generateData)

image

The image ID to be selected (either "AR", "AL", "BR", or "BL").

Value

A dataframe with 201 rows and 4 columns that have the row number (trial number), Q values for both of the paths leading to an image and the average of those Q values.


jdtrat/dynaq documentation built on July 24, 2020, 7:18 a.m.