I am having an issue with the lordif package in R which has been described before but not in my system
I am using Windows 10 and R studio with R version 4.2.1 (2022-06-23 ucrt) I am working on and IRT project on the development of a new scale
my code looks a bit like this:
`library(lordif)`
data("ISAAQ") # this is a data.frame
Age<-ISAAQ$age
Resp<-ISAAQ[,1:15] ageDIF<-lordif(Resp,Age,criterion="Chisqr",alpha=0.01,minCell=5)
plot(ageDIF,labels=c("Younger (<65)","Older (65+)"))`
The package seems to directly plot on a new device, which opens in a new window. The device seems to overwrite the plots and only the last one is available for saving. I have tried using PgUP PgDown which was recommended in another thread, and it does not work. The system appears to overwrite the earlier plots (there are multiple plots generated by the plot(DIF) command. I ahve tried to use dev.off() but this does not seem to solve anything. I have tried removing the labels, it does the same.
I have looked into the ?lordif for any advice but there is very little info there to help
Can someone help solving this? I would like to be able to access all the plots generated by the plotting command. A solution could be to direct the plot function to create the plot into R studio? any other ideas much aprpeciated