I have conducted an IRT analysis using package ltm in R 2.10.
fit1 <- grm(data)
When producing plots of item response characteristic curves (ICCs),
plot(fit1)
the text "Item response characteristic curves - Item:NAME" is printed as the main title of each plot. NAME is substituted with the actual name of the items in the dataset.
A common practice is to present all the individual ICC plots on a single page, and then all that is needed in the title of each plot is the NAME (or at the most "Item: NAME").
I have not been able to achieve this, if I create a vector with the actual item names (e.g. v1, v2, v3...Vn) they are all used as the title in each of the plots.
What I would like to achieve is to have the title of each plot simply read "Item: NAME" where NAME is replaced/pasted with the names of the actual variables in my data.
The variable names themselves are available in the coefficients fit1
object, and can be retrieved with names(fit1$coefficients)
.
Anyone have a suggestion for how to achieve this?
Reproducible sample (thanks @Chi)
dat <- Science[c(1,3,4,7)]
fit1 <- grm(dat)
par(mfrow = c(2,2))
plot(fit1)
This plots each of the four ICCs on the same device, but all titles contain the abovementioned text that I wish to remove. It also contains the text "Item: NAME" (i.e. comfort, environment, work, benefit) which I would like to retain.