These functions are required by runTriadExperiment
and runQuadExperiment
to define and display trials. They are provided as examples, and users are expected to define their own functions to define and display stimuli for estimating difference scales along other physical continua. DefineMyScale
returns a numeric vector providing the physical levels to be tested (here values of \(r\)). DisplayOneQuad
produces a 2 x 2 graphic of four scatterplots. DisplayOneTriad
produces a 1 x 3 graphic of three scatterplots.
DisplayOneQuad(rr, PntNum = 100, ptSize = 1,
xlim = c(-4, 4), ylim = c(-4, 4))
DisplayOneTriad(rr, PntNum = 100, ptSize = 1,
xlim = c(-4, 4), ylim = c(-4, 4))
DefineMyScale(rr = c(seq(0, 0.9, len = 10), 0.98))
DisplayOneTriad
and DisplayOneQuad
are used for their side-effect of producing a stimulus on the display. DefineMyScale
outputs a numeric vector of the physical scale. While its use here is quite trivial, in general, it permits the tailoring of the stimulus levels to the particular experiment. In the present case, one could imagine, for example, modifying it so that successive levels were evenly spaced in \(r^2\) rather than \(r\).
vector of numeric or integer. For DisplayOneTrial
, a four element vector of integers, providing the indices of the physical scale values to be displayed. For DefineMyScale
, a numeric vector, providing the physical scale values to be tested.
numeric giving the number of points to be displayed in each subgraphic.
numeric indicating the size of the points in each graphic, passed to the cex
argument of plot
.
2-element numerics to determine range of values plotted on the display.
Kenneth Knoblauch and Laurence T. Maloney
runTriadExperiment
, runQuadExperiment
if (FALSE) runQuadExperiment(DisplayTrial = "DisplayOneQuad",
DefineStimuli = "DefineMyScale")
Run the code above in your browser using DataLab