plot.irf {irtoys} | R Documentation |
A plot method for item response functions
Description
Useful for plotting item response functions. The x
argument of
irf
should better be left out unless something special is required.
Usage
## S3 method for class 'irf'
plot(
x,
add = FALSE,
main = "Item response function",
co = 1,
label = FALSE,
...
)
Arguments
x |
An object produced by function |
add |
When |
main |
The main title of the plot, given that |
co |
The colour of the IRF curve. Default is 1 for black. Use
|
label |
When |
... |
Any additional plotting parameters |
Author(s)
Ivailo Partchev
See Also
Examples
# plot IRF for all items in red, label with item number
plot(irf(Scored2pl), co="red", label=TRUE)
# plot IRF for items 2, 3, and 7 in different colours
plot(irf(Scored2pl, items=c(2,3,7)), co=NA)
[Package irtoys version 0.2.2 Index]