View source: R/average_var_over_repetition.R
average_ROF_facts | R Documentation |
Plots the average rate of forgetting (alpha) of the first session for each fact over the repetitions of the facts.
average_ROF_facts( data, factNames = "factId", xlim = NULL, ylim = NULL, filepath = NULL )
data |
A data frame. NA values will be removed before plotting. |
factNames |
Column that shows the names of the facts (like factText or factAnswer). Default shows factId. |
xlim |
A vector of 2 (for example: c(0, 10)), indicating the range of the x-axis.If NULL the default value is used. |
ylim |
A vector of 2 (for example: c(0, 1000)), indicating the range of the y-axis.If NULL the default value is used. |
filepath |
A relative or explicit path where plots will be saved |
Assumes that the data set has a repetition column with fact repetition in integers and a column with the alpha's for all observations.
The legend is given in the order of the average alpha for the last repetition of each fact. If there is more than one column (if there are too many facts to fit in one column), the columns should be read one-by-one. The upper-left value is the highest last alpha, the lower- right value is the lowest last alpha. All last alpha's are also marker by a bigger marker in the plot. Be aware that lines/markers may sometimes overlap.
The parameter factNames allows you to choose which column should be used to label the facts. Beware that for some data sets only a limited amount of columns will provide labels for all facts. For example, in a data set in which factText and fileName are both used, these columns are likely to not provide labels for all facts. In this case using the column factAnswer instead may be useful.
Plot of Alpha over repetition, with every line a fact and a pdf file in filepath
Other average functions:
average_ROF_participants()
,
average_RT_participants()
,
average_accuracy_participants()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.