runSampleExperiment
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$). DisplayOneTrial
produces a 2 x 2 graphic of four scatterplots.DisplayOneTrial(rr, PntNum = 100, ptSize = 1,
xlim = c(-4, 4), ylim = c(-4, 4))
DefineMyScale(rr = c(seq(0, 0.9, len = 10), 0.98))
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 cex
argument of plot
.DisplayOneTrial
is used for its 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$.runSampleExperiment
runSampleExperiment(DisplayTrial = "DisplayOneTrial",
DefineStimuli = "DefineMyScale")
Run the code above in your browser using DataLab