DisplayOneQuad {MLDS}R Documentation

Helper Functions for Perception of Correlation Difference Scale Experiment

Description

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.

Usage

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))

Arguments

rr

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.

PntNum

numeric giving the number of points to be displayed in each subgraphic.

ptSize

numeric indicating the size of the points in each graphic, passed to the cex argument of plot.

xlim, ylim

2-element numerics to determine range of values plotted on the display.

Value

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.

Author(s)

Kenneth Knoblauch and Laurence T. Maloney

See Also

runTriadExperiment, runQuadExperiment

Examples


## Not run: runQuadExperiment(DisplayTrial = "DisplayOneQuad", 
		DefineStimuli = "DefineMyScale")
## End(Not run)


[Package MLDS version 0.5.1 Index]