This function graphs the Rescorla-Wagner weights for a cue-outcome pair against learning time.
## S3 method for class 'RescorlaWagner'plot(x, asymptote=TRUE, xlab="t", ylab="weight", ylimit=NA,...)
Arguments
x: A object of the class "RescorlaWagner" produced by RescorlaWagner, consisting of a list including estimated weights for the incremental and equilibrium stages.
asymptote: A logical specifying whether the equilibrium asymptotic weight should be added to the plot.
xlab: Label for x-axis, by default "t".
ylab: Label for y-axis, by default "weight".
ylimit: The range of values to be displayed on the Y axis. By default, this will be determined from the data itself.
...: Arguments to be passed to methods, such as graphical parameters (see link{par}).
Returns
A plot is produced on the graphics device.
References
Danks, D. (2003). Equilibria of the Rescorla-Wagner model. Journal of Mathematical Psychology, 47 (2), 109-121.
Rescorla, R. A., & Wagner, A. R. (1972). A theory of Pavlovian conditioning: Variations in the effectiveness of reinforcement and nonreinforcement. In Black, A. H., & Prokasy, W. F. (Eds.), Classical conditioning II: Current research and theory (pp. 64-99). New York: Appleton-Century-Crofts.