par(mfrow=c(3,1)) not working?

268 views
Skip to first unread message

Guido

unread,
Jan 30, 2022, 8:37:47 AM1/30/22
to mirt-package
Hello,

I have itemplots of a few items that I want to print in 1 figure.
However something like par(mfrow=c(3,1)) does not work. The plot keep printing separately.
Patchwork only works voor ggplot
plot(c(traceplot1,traceplot2,traceplot3)) does work in a way but the main title cannot be changed and I can't seem to put a unique title on top of the individual plots.

Any other solutions?

gr Guido

Phil Chalmers

unread,
Mar 1, 2022, 12:33:31 PM3/1/22
to Guido, mirt-package
The patchwork package should work for lattice objects as well (ggplot2 and lattice are both grid-based graphics). Failing that you could use the gridExtra::grid.arrange() function to organize the plots yourself. 

Phil


--
You received this message because you are subscribed to the Google Groups "mirt-package" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mirt-package...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mirt-package/7e8070a7-4b2a-423c-8621-64807ecda5e2n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages