0

I am trying to figure out how to change the colors of the category characteristic curves using R's mirt package.

Here is the code I am using to generate the plot:

plot(mod_id, type='trace', which.item = c(1), facet_items=T, # 7 items in scale
     as.table = TRUE, auto.key=list(points=F, lines=T, columns=4, space = 'top', cex = .8), 
     theta_lim = c(-3, 3), 
     main = "")

Here is the generated plot:
enter image description here

Because there are 11 response items, it seems that the default colors start recycling so I'm not able to differentiate between the curves for P2 and P9 for example. Does anyone know how to manually set the colors of the curves?

Edit: I should mention I am a beginner R user! So I don't even know where to begin to edit the colors of the curves. These colors are the ones that automatically generate and I don't know how to change that setting within the mirt pacakge.

Thank you for the help!

Lindsay
  • 1
  • 1
  • 1
    It's easier to help you if you include a simple [reproducible example](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example) with sample input and desired output that can be used to test and verify possible solutions. What colors do you want? Have you been able to choose 11 colors that you can distinguish by eye in line form? – MrFlick Feb 27 '23 at 18:24

0 Answers0