Description Usage Arguments Value
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.
1 | getQGraphicValues(Qtable, image)
|
Qtable |
The Qtable from a simulation (i.e. the output of
|
image |
The image ID to be selected (either "AR", "AL", "BR", or "BL"). |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.