panel.psyfun | R Documentation |
Provides a panel function for use with xyplot from the lattice package so that a psychometric function will be fitted and plotted in each panel of a lattice
plot similar to panel.lmline
for fitting a linear regression line.
panel.psyfun(x, y, n, lnk = "logit", ...)
x |
vector of covariate values |
y |
vector of responses, usually proportion of correct responses |
n |
vector of integers specifying number of trial for each proportion in |
lnk |
link function to use in fitting |
... |
Other parameters passed from the formal arguments of the |
Nothing returned. Function just used for its side-effects of producing a graph within a panel function.
Kenneth Knoblauch
See also as lattice
lattice::xyplot(Pc ~ Phaseshift | WaveForm + TempFreq +
Direction, Vernier, layout = c(4, 2),
panel = function(x, y, n = 20, ...) {
lattice::panel.xyplot(x, y)
panel.psyfun(x, y, 20, lnk = "probit")
}
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.