plot_training_trials | R Documentation |
This function takes a sequence of training trials, each consisting of words and objects, and creates an animated plot of the word-object co-occurrence matrix. The plot evolves over each trial, visually representing the accumulation of co-occurrences. The animation is saved to a file if a filename is provided.
plot_training_trials(trials, fname = "")
trials |
A list representing the training data, where each element is a
trial containing lists of words ( |
fname |
A string specifying the filename where the animation should be saved. If left as an empty string (”), no file will be saved. |
A long-format data frame where each row corresponds to a trial and includes columns for trial number, word, object, and the count of co-occurrences up to that trial.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.